Page 1 of 1

click and search: exclude location

Posted: 20 Aug 2017 05:43
by yusef88
help file says:
Location: Here you can state the location to be searched. Leave the field empty to always search the current location. Enter * (asterisk) to search the whole PC.
what if the user want to exclude a location?

Re: click and search: exclude location

Posted: 20 Aug 2017 07:45
by highend
Then he reads the next line and finds the link for all the supported search switches...

Re: click and search: exclude location

Posted: 20 Aug 2017 08:51
by yusef88
the /excl= switch doesn't work in location field so it is a wish
Image

Re: click and search: exclude location

Posted: 20 Aug 2017 10:29
by highend
winstore.png
quick-search.png

Re: click and search: exclude location

Posted: 20 Aug 2017 12:32
by yusef88
you're right but if the search pattern itself is a switch this won't work
maybe this is an excessive request so thank you anyways

Code: Select all

/types={:Video}

Re: click and search: exclude location

Posted: 20 Aug 2017 12:49
by highend
Mh?

Start dir: R:\test

Files:
R:\test\1\1.avi
R:\test\2\2.avi
R:\test\3\3.avi

Location for the search category: /excl=R:\test\2

Search pattern for the item: /types={:Video}

Result:
R:\test\1\1.avi
R:\test\3\3.avi

What am I missing here?

Re: click and search: exclude location

Posted: 20 Aug 2017 13:34
by yusef88
try go to the drive root or my computer and perform the search because here it gives me all file types in the results
Image

Re: click and search: exclude location

Posted: 20 Aug 2017 15:01
by highend
try go to the drive root or my computer and perform the search because here it gives me all file types in the results
Probably a bug, let's see what Don has to say...

Re: click and search: exclude location

Posted: 20 Aug 2017 16:01
by admin
I cannot reproduce this when I click the "Video" item in the Catalog: Items are filtered by /types={:Video} as expected.

However, when I check the "Video" item in the Catalog then the /types switch is ignored. This might be unexpected at first sight, but it makes sense since this way a Boolean combination of all checked items in the category is used for the search, and individual item switches have to be ignored here.

So IMO it's alright as it is.

Re: click and search: exclude location

Posted: 20 Aug 2017 16:27
by highend
I can reproduce that behavior with the current beta

If the search category uses an /excl=<some path>
switch in the Location, than clicking (and not checking it)
on the item (with e.g. Pattern: /types={:Video})

leads to a result that includes everything, not only
the relevant types.

If the /excl=<some path> is removed from the category,
the quick search works as expected when clicked

Re: click and search: exclude location

Posted: 20 Aug 2017 16:42
by admin
Confirmed.

This is obviously done on purpose on the code (if the category has any switches, then drop any item switches), but unfortunately and untypically I did not make any comment on why I did it like this. :\

I will change it now.

Re: click and search: exclude location

Posted: 20 Aug 2017 16:45
by highend
Thanks, and I move the thread to "Bug reports"...