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.
Search_content_Return_both_file_name_and_content?
-
- Posts: 91
- Joined: Fri May 28, 2021 7:55 am
-
- Posts: 62
- Joined: Sun Jun 13, 2021 10:22 am
Re: Search_content_Return_both_file_name_and_content?
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 I get following results:
Manchester.txt
Manchester (Not in Content).txt
If I search for I get following results:
Manchester.txt
M-something.txt
However, if I search for 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 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.
"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
Manchester.txt
Manchester (Not in Content).txt
If I search for
Code: Select all
content:"Manchester"
Manchester.txt
M-something.txt
However, if I search for
Code: Select all
Manchester content:"Manchester"
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"
-
- Posts: 91
- Joined: Fri May 28, 2021 7:55 am
Re: Search_content_Return_both_file_name_and_content?
Thanks, for the example and explanations, Mizufluffy.
I will take a look at them.
I will take a look at them.
Re: Search_content_Return_both_file_name_and_content?
Well explained, Mizufluffy