fix note.text #1263

This commit is contained in:
zadam 2020-09-24 23:13:27 +02:00
parent 8ad7318bd8
commit 748979eafd
2 changed files with 6 additions and 2 deletions

View File

@ -166,7 +166,7 @@ export default class Entrypoints extends Component {
if (!response.success) { if (!response.success) {
toastService.showError("Search failed: " + response.message, 10000); toastService.showError("Search failed: " + response.message, 10000);
return; // even in this case we'll show the results
} }
this.triggerEvent('searchResults', {results: response.results}); this.triggerEvent('searchResults', {results: response.results});

View File

@ -186,7 +186,11 @@ function getExpression(tokens, searchContext, level = 0) {
i += 2; i += 2;
return getFulltext([tokens[i]], searchContext); return new OrExp([
new PropertyComparisonExp('title', buildComparator('*=*', tokens[i].token)),
new NoteContentProtectedFulltextExp('*=*', [tokens[i].token]),
new NoteContentUnprotectedFulltextExp('*=*', [tokens[i].token])
]);
} }
if (PropertyComparisonExp.isProperty(tokens[i].token)) { if (PropertyComparisonExp.isProperty(tokens[i].token)) {