FoxTrot Search Forum
FoxTrot Search for macOS Forum

Home » Public Forums » FoxTrot Search User Forum » Trouble searching for neighboring word when excluding other.
Trouble searching for neighboring word when excluding other. [message #1985] Sat, 14 March 2026 17:28 Go to next message
Geiri
Messages: 5
Registered: February 2026
Junior Member
I am using this string With foxtrot query: "{15} 77. gr. ævilangt -ökuleyfi" which work but I wont get a pinpoint to the location in the document.
That is where 77. gr. and ævilangt could be found in the document.

Now I have to manually search for it.

Any suggestions

Best Regards
Þorgeir Valur
Re: Trouble searching for neighboring word when excluding other. [message #1986 is a reply to message #1985] Mon, 16 March 2026 18:48 Go to previous messageGo to next message
FoxTrot Engineering
Messages: 431
Registered: April 2020
Senior Member
Yes, there is a small issue here caused by the excluded word (-ökuleyfi). Although FoxTrot should actually find documents that contain [77], [gr] and [ævilangt] in the given proximity range (15 words) with no occurrence of [ökuleyfi] in the same range (but it could occur elsewhere in the document), highlighting does not work as it should. The workaround in FoxTrot Pro is to open the document in a FoxTrot window ("view in FoxTrot Pro"), then remove the excluded word from the query string in the right pane (i.e. "{15} 77. gr. ævilangt"). This may also highlight occurrences of [77] [gr] and [ævilangt] that are actually at proximity of [ökuleyfi], but that is better of not highlighting anything at all.
Thanks for the report


Jérôme - FoxTrot Engineering
Re: Trouble searching for neighboring word when excluding other. [message #2001 is a reply to message #1986] Thu, 02 April 2026 23:29 Go to previous message
Geiri
Messages: 5
Registered: February 2026
Junior Member
One more question regarding this matter.
how do I make a search string with includion exclusion and neigboring words.

If I continue with my example in previus comment.
I want to search with in 15 word range for "77. gr." and ævilangt and exclude ökuleyfi
If I use "{15} 77. gr. ævilangt -ökuleyfi" it takes 77. and gr. as two seaperated words but I need it only mark them when they are to gather as "77. gr."

Is that possible in any way?

Best Regards as always.
Þorgeir Valur Ellertsson
Previous Topic: How to convert Windows Live Mail EML files to MBOX?
Next Topic: Welcome to the FoxTrot Search User Forum
Goto Forum:
  


Current Time: Fri Apr 03 10:19:34 GMT+2 2026