By default, Rview performs a fuzzy search on filepaths. The fuzziness is achieved
by splitting filepaths and search inputs to normalized words and generating prefixes
of various length for these words.
Rview also provides more advanced ways to search for files:
"exact match",".jpg": Search for exact matches.-exclude,-.pngor-"exclude with spaces": Exclude exact matches, use double quotes to exclude text with spaces.
Files:
/animals/cute cat.jpeg/animals/cat jumps.mp4/animals/caterpillar.png/animals/Cat & Dog play.mkv/dogmas/catalog.zip
Search Requests:
caterpillar- search for filepaths that have the same prefixes ascaterpillar(cat,cate,cater, ...). Results:/animals/caterpillar.png/animals/Cat & Dog play.mkv/animals/cat jumps.mp4/animals/cute cat.jpeg/dogmas/catalog.zip
"caterpillar"- search for filepaths that have exactlycaterpillar. Results:/animals/caterpillar.png
cat dog- search for filepaths that have the same prefixes as bothcatanddog. Results:/animals/Cat & Dog play.mkv/dogmas/catalog.zip
cat dog -zip- search for filepaths that have the same prefixes as bothcatanddog, but don't have exactlyzip. Results:/animals/Cat & Dog play.mkv
-"dog" -png -jumps- search for filepaths that don't have exactlydog,pngandjumps. Results:/animals/cute cat.jpeg
dog "/cat" -mkv- search for filepaths that have the same prefixes asdog, have exactly/catand don't have exactlymkv. Results:/dogmas/catalog.zip
animals -"cat & dog"- search for filepaths that have the same prefixes asanimalsand don't have exactlycat & dog. Results:/animals/cat jumps.mp4/animals/caterpillar.png/animals/cute cat.jpeg
Examples are generated by
github.com/ShoshinNikita/rview/search.TestGenerateDocs.