added querying by relation's properties

This commit is contained in:
zadam
2020-05-23 12:27:44 +02:00
parent 3d12341ff1
commit 355ffd3d02
14 changed files with 120 additions and 29 deletions

View File

@@ -11,7 +11,7 @@ class NoteCacheFulltextExp extends Expression {
this.tokens = tokens;
}
execute(noteSet, searchContext) {
execute(inputNoteSet, searchContext) {
// has deps on SQL which breaks unit test so needs to be dynamically required
const noteCacheService = require('../../note_cache/note_cache_service');
const resultNoteSet = new NoteSet();
@@ -66,7 +66,7 @@ class NoteCacheFulltextExp extends Expression {
}
}
const candidateNotes = this.getCandidateNotes(noteSet);
const candidateNotes = this.getCandidateNotes(inputNoteSet);
for (const note of candidateNotes) {
// autocomplete should be able to find notes by their noteIds as well (only leafs)