content:exact:searchword

Have a suggestion for "Everything"? Please post it here.
Post Reply
tuska
Posts: 329
Joined: Thu Jul 13, 2017 9:14 am

content:exact:searchword

Post by tuska » Sat Mar 20, 2021 10:10 am

Hi,

At present, such a search query is not permitted (0 objects):

Code: Select all

content:exact:11%
I would therefore like to see a query like this, because then one would not have to restrict by file extension, like for example:

Code: Select all

ext:txt content:11%
Would you please check the suggestion.
Thank you!

void
Site Admin
Posts: 6454
Joined: Fri Oct 16, 2009 11:31 pm

Re: content:exact:searchword

Post by void » Sat Mar 20, 2021 10:27 am

Please use the search modifier first, for example:

exact:content:11%

Otherwise, you are searching for the text "exact:" in your file content.

exact: will match the entire content, is that what you want? the above search will only match files that contain the text 11% and nothing else.
ext:txt content:11%
Is the ext:txt just to avoid using iFilters?
-If so please try the binary: search modifier:

For example:
binary:exact:content:11%
This will bypass any iFilters and treat the file content as binary.

tuska
Posts: 329
Joined: Thu Jul 13, 2017 9:14 am

Re: content:exact:searchword

Post by tuska » Sat Mar 20, 2021 3:21 pm

Hi,

Thank you for the information.

My goal was to find files that have the exact search term "11%" as file content,
and do not occur in a file (e.g. with tens of pages) in combination with other text.

Exact search term because with "11%" the page number 11, for example, would otherwise also be found in any document.

In the meantime, however, I think that such a search limitation is probably not possible for a file content search.

Regards,
Karl

void
Site Admin
Posts: 6454
Joined: Fri Oct 16, 2009 11:31 pm

Re: content:exact:searchword

Post by void » Sun Mar 21, 2021 3:23 am

Thanks for the reply Karl,

Is Everything ignoring the % in your content: search? -Everything should be matching the % -it might be the iFilter doing something weird and injecting a %

exact: is most likely not the search modifier you want, as it will match the whole file content.

tuska
Posts: 329
Joined: Thu Jul 13, 2017 9:14 am

Re: content:exact:searchword

Post by tuska » Sun Mar 21, 2021 9:30 am

Hi,

I just wanted to find the exact search term: 11% ... in words: 11 percent ... in the file content.
This is obviously not possible.

But thank you for the information.

Regards,
Karl

horst.epp
Posts: 393
Joined: Fri Apr 04, 2014 3:24 pm

Re: content:exact:searchword

Post by horst.epp » Sun Mar 21, 2021 9:44 am

tuska wrote:
Sun Mar 21, 2021 9:30 am
Hi,

I just wanted to find the exact search term: 11% ... in words: 11 percent ... in the file content.
This is obviously not possible.

But thank you for the information.

Regards,
Karl
I have no problem to find 11% in txt and pdf documents using content search.

void
Site Admin
Posts: 6454
Joined: Fri Oct 16, 2009 11:31 pm

Re: content:exact:searchword

Post by void » Sun Mar 21, 2021 9:54 am

I think tuksa would like to search for:

11%

and have it match:

11percent

I have on my TODO list to support "Synonyms".
Useful to treat and = 'n = &

one could be added for % = percent

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

Re: content:exact:searchword

Post by NotNull » Sun Mar 21, 2021 9:55 am

Me neither.
ext:txt content:"11%"
does the job.

Consider using
ext:txt ww:content:"11%"
to eliminate cases with "111%" and "11%gold"

(ww: = match whole word )

tuska
Posts: 329
Joined: Thu Jul 13, 2017 9:14 am

Re: content:exact:searchword

Post by tuska » Sun Mar 21, 2021 10:32 am

@void
Your assumption was right.

@All
Thanks for the support!

NotNull's solution gave me the desired result:

Code: Select all

ext:txt ww:content:"11%"
 
Content_11%_(exact-only 11pct).png
Content_11%_(exact-only 11pct).png (50.56 KiB) Viewed 3058 times
 
Regards,
Karl

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

Re: content:exact:searchword

Post by NotNull » Sun Mar 21, 2021 10:41 am

void wrote:
Sun Mar 21, 2021 9:54 am
I have on my TODO list to support "Synonyms".
I suspect the German speaking people of this community will be very happy with that.

That would mean that they can add ue as a synonym to ü, so searching for grün also finds gruen

Post Reply