-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Handle search on both path and name
Say you have a "Foo" directory with a "bar.txt" in it. Let's assume this bar.txt is duplicated in many locations. You want to search specifically for it by typing "Foo bar". It wasn't possible before because of how flexsearch works: it searches by indexed attributes, here the `path` and the `name`. In this example, "Foo bar" will not match the name, neither the path. As a workaround, we now force the path computing at indexing time for all files. This path is not persisted in PouchDB, as the stack does not store it for files (but it does for directories). Note that even though the stack returns the file's path when we query it, we need to add the file name, as it does not include it.
- Loading branch information
1 parent
a9e2ad5
commit 50bcdf3
Showing
4 changed files
with
180 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters