mirror of
https://github.com/zadam/trilium.git
synced 2025-11-15 17:55:52 +01:00
fix fulltext content search
This commit is contained in:
@@ -25,7 +25,7 @@ function getFulltext(tokens, parsingContext) {
|
||||
else if (parsingContext.includeNoteContent) {
|
||||
return new OrExp([
|
||||
new NoteCacheFulltextExp(tokens),
|
||||
new NoteContentFulltextExp(tokens)
|
||||
new NoteContentFulltextExp('*=*', tokens)
|
||||
]);
|
||||
}
|
||||
else {
|
||||
@@ -55,6 +55,21 @@ function getExpression(tokens, parsingContext, level = 0) {
|
||||
|
||||
i++;
|
||||
|
||||
if (tokens[i] === 'content') {
|
||||
i += 1;
|
||||
|
||||
const operator = tokens[i];
|
||||
|
||||
if (!isOperator(operator)) {
|
||||
parsingContext.addError(`After content expected operator, but got "${tokens[i]}"`);
|
||||
return;
|
||||
}
|
||||
|
||||
i++;
|
||||
|
||||
return new NoteContentFulltextExp(operator, [tokens[i]]);
|
||||
}
|
||||
|
||||
if (tokens[i] === 'parents') {
|
||||
i += 1;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user