For example, when I search for "BBB|AAA|CCC .txt", there are three files:
AAA BBB B.txt
AAA BBB CCC.txt
AAA CAA.txt
However, I would like the results to be sorted as follows:
AAA BBB CCC.txt
AAA BBB B.txt
AAA CAA.txt
Is it possible to sort the results by the number of search terms that match the filename?
Re: Is it possible to sort the results by the number of search terms that match the filename?
Not really possible with Everything.
I have on my TODO list to sort by relevance.
For now, in Everything 1.5:
I have on my TODO list to sort by relevance.
For now, in Everything 1.5:
Code: Select all
<<BBB AAA CCC a:=3> | <BBB AAA a:=2> | <BBB CCC a:=2> | <AAA CCC a:=2> | <AAA a:=1> | <BBB a:=1> | <CCC a:=1>> sort:a-descending
Re: Is it possible to sort the results by the number of search terms that match the filename?
Thanks for replying and I look forward to that feature being added.
Re: Is it possible to sort the results by the number of search terms that match the filename?
Still not really possible, but in another way (requires Everything 1.5):
When not interested in the exact number of matches, leave out "addcol:A"
regex syntax
@void: did not expect regexcount() to be case sensitive. Should it be?
Code: Select all
AAA | BBB | CCC addcol:A A:=REGEX_COUNT($name:,"(?i)AAA|BBB|CCC") sort:A-descending
regex syntax
@void: did not expect regexcount() to be case sensitive. Should it be?
Re: Is it possible to sort the results by the number of search terms that match the filename?
Yes, it should be, use the following for a case-insensitive search:
addcol:A A:=REGEX_COUNT($name:,"(?i)AAA|BBB|CCC") sort:A-descending
Re: Is it possible to sort the results by the number of search terms that match the filename?
OK, thanks.
(edited original query to reflect this)
(edited original query to reflect this)