sorting search results occurences in the note title

This commit is contained in:
zadam
2020-12-11 13:54:41 +01:00
parent 0b6fa4ab06
commit be543737a9
16 changed files with 66 additions and 33 deletions

View File

@@ -12,7 +12,7 @@ class RelationWhereExp extends Expression {
this.subExpression = subExpression;
}
execute(inputNoteSet, searchContext) {
execute(inputNoteSet, executionContext) {
const candidateNoteSet = new NoteSet();
for (const attr of noteCache.findAttributes('relation', this.relationName)) {
@@ -20,7 +20,7 @@ class RelationWhereExp extends Expression {
if (inputNoteSet.hasNoteId(note.noteId)) {
const subInputNoteSet = new NoteSet([attr.targetNote]);
const subResNoteSet = this.subExpression.execute(subInputNoteSet, searchContext);
const subResNoteSet = this.subExpression.execute(subInputNoteSet, executionContext);
if (subResNoteSet.hasNote(attr.targetNote)) {
if (attr.isInheritable) {