Searching for multiple words in a document

General discussion related to "Everything".
Post Reply
computergecko
Posts: 3
Joined: Fri Oct 07, 2022 1:59 pm

Searching for multiple words in a document

Post by computergecko »

Sorry for the noob question...

How do you search for multiple words in a document?

I thought I could just type the words "john skit drama" without quotes and if all three words show up, then it would list the document(s). It didn't work.

I tried:

john AND skit AND drama

It didn't work...

I checked the document and it has all three words.

Thanks!

Ed
NotNull
Posts: 5517
Joined: Wed May 24, 2017 9:22 pm

Re: Searching for multiple words in a document

Post by NotNull »

I assume you mean the content of documents (instead of searching in the filenames itself)?

To search for content, you need to use the content: function, for example:

Code: Select all

"c:\some folder\"   ext:docx;xlsx    content:john  content:skit  content:drama
to search for Office documents that have all 3 words anywhere in the document.

If these words appear as exact text in the documents, this will do:

Code: Select all

"c:\some folder\"   ext:docx;xlsx    content:"john skit drama"
computergecko
Posts: 3
Joined: Fri Oct 07, 2022 1:59 pm

Re: Searching for multiple words in a document

Post by computergecko »

NotNull wrote: Sun Oct 09, 2022 2:45 pm I assume you mean the content of documents (instead of searching in the filenames itself)?

To search for content, you need to use the content: function, for example:

Code: Select all

"c:\some folder\"   ext:docx;xlsx    content:john  content:skit  content:drama
to search for Office documents that have all 3 words anywhere in the document.

If these words appear as exact text in the documents, this will do:

Code: Select all

"c:\some folder\"   ext:docx;xlsx    content:"john skit drama"
AWESOME! Thank you! I had found the content: but didn't realize that it had to be for each word.
NotNull
Posts: 5517
Joined: Wed May 24, 2017 9:22 pm

Re: Searching for multiple words in a document

Post by NotNull »

You're welcome!

In the upcoming version 1.5 you can specify them all at once, using the following syntax:
content:<john skit drama>

But for Everything 1.4 you need to use the "old" syntax.
computergecko
Posts: 3
Joined: Fri Oct 07, 2022 1:59 pm

Re: Searching for multiple words in a document

Post by computergecko »

NotNull wrote: Sun Oct 09, 2022 3:29 pm You're welcome!

In the upcoming version 1.5 you can specify them all at once, using the following syntax:
content:<john skit drama>

But for Everything 1.4 you need to use the "old" syntax.
BRILLIANT!!!!
anatoliibakhtin
Posts: 1
Joined: Thu Oct 13, 2022 5:14 pm

Re: Searching for multiple words in a document

Post by anatoliibakhtin »

Hello, computergecko !

I think my question a bit related to this topic: How to sort the found list by the number of words encountered in the file, so that the more times the word occurs in the file, the higher the position of this line is ? Do you know ? I can't find the right sorting type (what it's called, I'm not very familiar with the English language, Everything.exe yet)...I'd be very happy to give you a hint.

Thank you for your attention!
void
Developer
Posts: 17153
Joined: Fri Oct 16, 2009 11:31 pm

Re: Searching for multiple words in a document

Post by void »

Everything doesn't have a "relevance" sort.
Everything simply tells you the content search matches or not.

A "relevance" sort is on my TODO list.
Showing the line number of the match is also on my TODO list.

Thank you for your suggestions.
Post Reply