mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
fix note.text #1263
This commit is contained in:
parent
8ad7318bd8
commit
748979eafd
@ -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});
|
||||||
|
@ -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)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user