Page 1 of 1

Search

Posted: 15 Jul 2009 21:09
by sryap
When searching for a word inside a file why are .jpg files show up on the search result?

Re: Search

Posted: 15 Jul 2009 21:51
by zer0
sryap wrote:When searching for a word inside a file why are .jpg files show up on the search result?
Hello and welcome to the forums!

My first guess of an answer to that, is that when you have a look at Raw View of an image file, JPG in this context, there is some metadata that is being stored within the file. Perhaps, when searching for a string inside a file, XY also reads that metadata and, if there's a match, it includes that file in the search results list. That's just a guess though and I'll stand corrected if that is not so. Of course, you can exclude JPGs from being shown by using the following search criteria:

Code: Select all

!>.*(\.jpg)$
This will find all files apart from JPGs, so adopt it to your needs and you won't see them again :)

Re: Search

Posted: 01 Aug 2009 15:09
by admin
zer0 wrote:
sryap wrote:When searching for a word inside a file why are .jpg files show up on the search result?
Hello and welcome to the forums!

My first guess of an answer to that, is that when you have a look at Raw View of an image file, JPG in this context, there is some metadata that is being stored within the file. Perhaps, when searching for a string inside a file, XY also reads that metadata and, if there's a match, it includes that file in the search results list. That's just a guess though and I'll stand corrected if that is not so. Of course, you can exclude JPGs from being shown by using the following search criteria:

Code: Select all

!>.*(\.jpg)$
This will find all files apart from JPGs, so adopt it to your needs and you won't see them again :)
It does not have to be a RegExp. *.jpg with "Invert" checked will do as well, or:

Code: Select all

!*.jpg