Search_content_Return_both_file_name_and_content?

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
Flourgrader
Posts: 85
Joined: Fri May 28, 2021 7:55 am

Search_content_Return_both_file_name_and_content?

Post by Flourgrader »

Hi Guys,
I am using Everything Version 1.5.0.1271a (x64)
I use the command content:<search here>
How can I get the command to return both the file name and the content that contain the word “Manchester”
Sometimes I write a file and call it “Manchester.txt” but the content of the file does not contain the word “Manchester”
Yet I would like the file name to be returned in the search as it will contain information I want.
I thought it was doing what I wanted, but I must have been mistaken,
as I was very busy at the time.
Thank You.
Mizufluffy
Posts: 62
Joined: Sun Jun 13, 2021 10:22 am

Re: Search_content_Return_both_file_name_and_content?

Post by Mizufluffy »

Let's say I have three text files:
"Manchester.txt" that has text "Manchester" in the content,
"Manchester (Not in Content).txt" that has no text "Manchester" in the content and
"M-something.txt" that has Manchester in the content but not in the file name.

If I search for

Code: Select all

Manchester
I get following results:
Manchester.txt
Manchester (Not in Content).txt


If I search for

Code: Select all

content:"Manchester"
I get following results:
Manchester.txt
M-something.txt


However, if I search for

Code: Select all

Manchester content:"Manchester"
I get only the following result:
Manchester.txt
because it is the only one that has Manchester both in file name (search term Manchester) and Manchester in the content (search term content:"Manchester"). The space between the two search terms means AND so search matches only when both conditions are true at the same time.

If I search for

Code: Select all

Manchester | content:"Manchester"
I get all three files because the | between the two search terms means OR so I find files when at least one of the search terms is true.
Flourgrader
Posts: 85
Joined: Fri May 28, 2021 7:55 am

Re: Search_content_Return_both_file_name_and_content?

Post by Flourgrader »

Thanks, for the example and explanations, Mizufluffy.
I will take a look at them.
NotNull
Posts: 5261
Joined: Wed May 24, 2017 9:22 pm

Re: Search_content_Return_both_file_name_and_content?

Post by NotNull »

Mizufluffy wrote: Fri Aug 06, 2021 1:54 pm ... Manchester ..
Well explained, Mizufluffy :thumbsup:
Post Reply