Contents contain extra space at end

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

Contents contain extra space at end Thu Sep 22, 2022 7:01 am • by etienne74
Hello,

I have noticed that when I sort through PDF files, that the condition "Contents" and then "contain" does not leads to results when the search term has no space at the end but the target in the PDF does.

E.g. if I search for "invoice", it will not find any matches if in the PDF file it is "invoice ".
Only when I search for "invoice " (with the space) it will lead to a result inside the PDF.
For Contain Match I would understand this, but not for Contain only.

Solution / workaround is having 2 condition in a nested condition, one with and one without a space.

Is this a bug or desired functionality?
Thanks,
Etienne
etienne74
 
Posts: 7
Joined: Tue Dec 24, 2019 9:14 am

Re: Contents contain extra space at end Thu Sep 22, 2022 9:14 am • by Mr_Noodle
It may be how Spotlight is indexing things ("Contents contain" uses Spotlight). You may get better results if you use "Contents contain match".
Mr_Noodle
Site Admin
 
Posts: 11195
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Contents contain extra space at end Thu Sep 22, 2022 10:00 am • by etienne74
Mr_Noodle wrote:It may be how Spotlight is indexing things ("Contents contain" uses Spotlight). You may get better results if you use "Contents contain match".


Yes, I just tried that, Contain match is much better. Thanks.
etienne74
 
Posts: 7
Joined: Tue Dec 24, 2019 9:14 am


Return to Support