Page 1 of 1
es.exe doesnt work with multi word queries (AND)
Posted: Fri Oct 19, 2018 5:13 pm
by robertcollier4
Hi, I am having a problem with es.exe not returning any results for some multi word queries, even though I am including quotes to indicate the entire string as a single command line parameter. The same query in Everything GUI works perfectly.
Steps to reproduce:
1. On command line using ES-1.1.0.10 run
RESULT - no results found
2. In Everything GUI, type in
RESULT - found D:\PortableApps\Everything
I am trying to get the "AND" behavior described on
https://www.voidtools.com/support/everything/searching/ and it says that "ES uses the Everything Search syntax".
Re: es.exe doesnt work with multi word queries (AND)
Posted: Fri Oct 19, 2018 5:38 pm
by robertcollier4
It seems as if
is being resolved as Everything GUI
Rather,
Code: Select all
es.exe "\"portableapps everything\""
should resolve to that GUI result of typing quotes around multiple words. As per
https://superuser.com/questions/182454/ ... as-example
Re: es.exe doesnt work with multi word queries (AND)
Posted: Fri Oct 19, 2018 7:40 pm
by therube
Leave the quotes out.
The intervening spaces are then AND's.
By including the quotes, you end up looking for the literal string "portableapps[space]everything", which doesn't exist.
Re: es.exe doesnt work with multi word queries (AND)
Posted: Fri Oct 19, 2018 7:45 pm
by robertcollier4
I've tried that.
Result - no results found
Please try with a similar example on your hard drive and see if you can reproduce. Choose the names of two different subdirectories in one path like I have with es.exe.
Re: es.exe doesnt work with multi word queries (AND)
Posted: Fri Oct 19, 2018 8:11 pm
by therube
Try:
es -p portableapps everything
-p says to match the path.
Also note what this does:
es portableapps/ everything
Oh, & thinking that you do have Match Path enabled in the GUI.
Re: es.exe doesnt work with multi word queries (AND)
Posted: Fri Oct 19, 2018 8:16 pm
by robertcollier4
Thanks! -p fixed it. I was thinking that es.exe would use the same options set in the settings. Yes, I do have match patch enabled in the GUI. I'll now add -p to all my command line usage.
Resolved.