Question on text search

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
Khellendros
Posts: 2
Joined: 14 Apr 2020 18:59

Question on text search

Post by Khellendros »

I am new to the program, and I wish someone would kindly help me on this::

I would like to do text search to single out those MS Word documents which contain multiple keywords, say for example, containing both the words "cats" and "dogs". I am doing well with single word search , but I am in no luck for multiple, after trying like "cats +dogs", "cats & dogs"...... So my question is, what is I exactly to do in the text search box to make it work? Thanks in advance

highend
Posts: 13327
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Question on text search

Post by highend »

Leave the content field empty and use this in the name field: *.docx AND cont:word1 AND word2

Using positive lookaheads in the content field would probably be a bit too much...
One of my scripts helped you out? Please donate via Paypal

Khellendros
Posts: 2
Joined: 14 Apr 2020 18:59

Re: Question on text search

Post by Khellendros »

Thanks for the answer. Would you mind telling me what kind of expression or logic is it? So that I can enlighten myself in long run.

highend
Posts: 13327
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Question on text search

Post by highend »

.chm help file: Main Topics - Info Panel - Find Files Tab - Tab "Name & Location" - "Find Files by Contents"
and the entry for "Find Files by Multi Field Search" belongs to this as well

- So we have a multi field search here (searching for the file extension and the content)
- The "cont:" is a scope selector for searching the content
- The AND is a logical and (find files with that extension and find both words)
One of my scripts helped you out? Please donate via Paypal

Post Reply