Internal

queryNotes

fuseEngine.queryNote({ qs }) 
  • src/fuseEngine.ts
queryNote { 
    if qs = "":                     
        @index.search "root"
    else if qs = "*":
        @index._docs
    else:
        @index.search qs
}

write new note

  • src/enginev2.ts
writeNote {
  @store.writeNote
}
  • src/drivers/file/storev2.ts
writeNote(note, opts) {
  maybeNote := note
  if (maybeNote.stub || opts.updateExisting) {
    ...
  } else {
    @_writeNewNote()
  }

  SchemaUtils.matchPath(h)


}

_writeNewNote() {
  ....
}

Reference

fuseEngine Options

  • src/fuseEngine.ts
  const options = {
    shouldSort: true,
    threshold: opts.exactMatch ? 0.0 : 0.6,
    location: 0,
    distance: 50,
    maxPatternLength: 32,
    minMatchCharLength: 2,
    keys: ["fname"],
    useExtendedSearch: true,
    includeScore: true,
  };

Backlinks