Using AND filter searching inside files with CONTENT:

General discussion related to "Everything".
Post Reply
PeterPan8
Posts: 23
Joined: Mon May 01, 2023 7:00 pm

Using AND filter searching inside files with CONTENT:

Post by PeterPan8 »

I'm using the latest Beta version 1.5.0.1383a (x64) on Windows 10.

How can I use the "and" filter to search inside Word files (*doc or *docx)?
I've tried this to no avail:
content:"maison"|"house"

The | symbol is supposed to represent the "and" filter (from what I read somewhere on the Board.)

I'm looking for all files containing both "maison" AND "house" in the same file. And I'm not looking for similar words, like maisonnette or household.

Thanks for any tips!
void
Developer
Posts: 16698
Joined: Fri Oct 16, 2009 11:31 pm

Re: Using AND filter searching inside files with CONTENT:

Post by void »

space = AND

< > = Grouping

ext:doc;docx content:<maison house>

-or-

ext:doc;docx content:maison content:house
tuska
Posts: 1052
Joined: Thu Jul 13, 2017 9:14 am

Re: Using AND filter searching inside files with CONTENT:

Post by tuska »

I suggest the following:

Code: Select all

ext:doc;docx ww:content:<maison house>
ww:, whole-word:, whole-words:
PeterPan8
Posts: 23
Joined: Mon May 01, 2023 7:00 pm

Re: Using AND filter searching inside files with CONTENT:

Post by PeterPan8 »

Thanks! So If I understand correctly, that search statement:
ext:doc;docx content:maison content:house

means to find all files with the extension doc and docx which contains the word maison or which contains the word house.

The and filter is simply to group the terms in brackets <maison house>.

Is that correct?

And what does ww:content statement means?
tuska
Posts: 1052
Joined: Thu Jul 13, 2017 9:14 am

Re: Using AND filter searching inside files with CONTENT:

Post by tuska »

PeterPan8 wrote: Tue Jun 18, 2024 4:28 pm Thanks! So If I understand correctly, that search statement:
ext:doc;docx content:maison content:house

... which contains the word maison or which contains the word house.
Is that correct?
No, this means operator AND due to the space character.
PeterPan8 wrote: Tue Jun 18, 2024 4:28 pm The and filter is simply to group the terms in brackets <maison house>.
As mentioned above by void, both variants are possible (and bring up the same search result):
content:<maison house> ... OR ...
content:maison content:house
The first variant looks more professional to me and is easier to record.
PeterPan8 wrote: Tue Jun 18, 2024 4:28 pm And what does ww:content statement means?
Please see the picture below.
Without the ww: parameter, I also received files containing "maisonnette" or "household" in my tests.
 
2024-06-18_doc-docx_content_whole words_ww_maison AND house.png
2024-06-18_doc-docx_content_whole words_ww_maison AND house.png (43.99 KiB) Viewed 1576 times
PeterPan8
Posts: 23
Joined: Mon May 01, 2023 7:00 pm

Re: Using AND filter searching inside files with CONTENT:

Post by PeterPan8 »

Great info! Thanks! 8-)
Post Reply