[Resolved] es.exe when connected to 1.5 does not return results for inverted query

Discussion related to "Everything" 1.5 Alpha.
Post Reply
aviasd
Posts: 135
Joined: Sat Oct 07, 2017 2:18 am

[Resolved] es.exe when connected to 1.5 does not return results for inverted query

Post by aviasd »

Hi
On v1.4 the following worked without an issue:

Code: Select all

es -sort-path-ascending -export-txt mydb  '!f:\\Backup'
on v1.5 the above produces an empty file/no results. it happens on every query prepended with "!". normal queries work fine.
is there a workaround?
Note: ini contains:

Code: Select all

instance=1.5a
Thanks
Last edited by aviasd on Wed May 05, 2021 6:40 am, edited 1 time in total.
void
Developer
Posts: 16675
Joined: Fri Oct 16, 2009 11:31 pm

Re: es.exe when connected to 1.5 does not return results for inverted query

Post by void »

Are you calling ES from Powershell?

Please try the following:

Code: Select all

es -sort-path-ascending -export-txt mydb  !`"f:\Backup`"
For Everything 1.5, please try the following es call:

Code: Select all

es -instance 1.5a -sort-path-ascending -export-txt mydb  !`"f:\Backup`"
`" = literal "
aviasd
Posts: 135
Joined: Sat Oct 07, 2017 2:18 am

Re: es.exe when connected to 1.5 does not return results for inverted query

Post by aviasd »

I am using single quotes with ! inside them:
es -sort-path-ascending -export-txt mydb '!f:\\Backup'
this is because this command is running under cygwin script and I need to prevent history expansion by enclosing the !.
I'll take a look at how to prevent history expansion without quoting...But this used to work in everything 1.4... :roll:
void
Developer
Posts: 16675
Joined: Fri Oct 16, 2009 11:31 pm

Re: es.exe when connected to 1.5 does not return results for inverted query

Post by void »

To check the query Everything 1.5 is receiving:
  • In Everything, from the Tools menu, under the Debug submenu, Check Console.
  • Perform your es call
  • The requested query is shown in Cyan and looks like:
    IPC: execute query: !"f:\Backup"
aviasd
Posts: 135
Joined: Sat Oct 07, 2017 2:18 am

Re: es.exe when connected to 1.5 does not return results for inverted query

Post by aviasd »

Sorry for that.
During some of my tests I created a folder macro named f:, then forgot all about it.
Everything was expanding f: to folder:

This log line helped to find the issue:

Code: Select all

expanded: nofiltercase:filterpath:nofilterwholeword:nofilterdiacritics:nofilterprefix:nofiltersuffix:nofilterignorepunctuation:nofilterignorewhitespace:nofilterregex:< folder: >\Backup
Thanks
Post Reply