es.exe doesnt work with multi word queries (AND)

Found a bug in "Everything"? report it here
Post Reply
robertcollier4
Posts: 8
Joined: Sun Jun 16, 2013 4:38 pm

es.exe doesnt work with multi word queries (AND)

Post by robertcollier4 » Fri Oct 19, 2018 5:13 pm

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

Code: Select all

es.exe "portableapps everything"
RESULT - no results found

2. In Everything GUI, type in

Code: Select all

portableapps everything
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".
Last edited by robertcollier4 on Fri Oct 19, 2018 5:53 pm, edited 1 time in total.

robertcollier4
Posts: 8
Joined: Sun Jun 16, 2013 4:38 pm

Re: es.exe doesnt work with multi word queries (AND)

Post by robertcollier4 » Fri Oct 19, 2018 5:38 pm

It seems as if

Code: Select all

es.exe "portableapps everything"
is being resolved as Everything GUI

Code: Select all

"portableapps everything"
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

therube
Posts: 1982
Joined: Thu Sep 03, 2009 6:48 pm

Re: es.exe doesnt work with multi word queries (AND)

Post by therube » Fri Oct 19, 2018 7:40 pm

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.

robertcollier4
Posts: 8
Joined: Sun Jun 16, 2013 4:38 pm

Re: es.exe doesnt work with multi word queries (AND)

Post by robertcollier4 » Fri Oct 19, 2018 7:45 pm

I've tried that.

Code: Select all

es.exe portableapps everything
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.

therube
Posts: 1982
Joined: Thu Sep 03, 2009 6:48 pm

Re: es.exe doesnt work with multi word queries (AND)

Post by therube » Fri Oct 19, 2018 8:11 pm

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.

robertcollier4
Posts: 8
Joined: Sun Jun 16, 2013 4:38 pm

Re: es.exe doesnt work with multi word queries (AND)

Post by robertcollier4 » Fri Oct 19, 2018 8:16 pm

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.

Post Reply