FoxTrot Search Forum
FoxTrot Search for macOS Forum

Home » Public Forums » FoxTrot Search User Forum » How to match single wild character in Foxtrot Query?
Re: How to match single wild character in Foxtrot Query? [message #1441 is a reply to message #1440] Wed, 11 May 2022 11:34 Go to previous message
FoxTrot Engineering
Messages: 384
Registered: April 2020
Senior Member
That is a single point: wildcards allow searching any whole word matching an expression; they can't be used to search a sequence of words, or any character that is not part of a word (i.e. spaces, newlines, punctuation etc). This applies to the current implementation (leading and trailing *), and this would also apply if we implement other wildcards, like * inside a word to find whole words with a given prefix and suffix, or ? for any-single-alphabetic-or-letter-or-symbol-character.

Likewise, for your needs you can't use:
[includes the exact string] [ignore punctuation, ignore blanks] [multipolar]
nor:
[includes the exact string] [ignore punctuation, ignore blanks] [multi polar]
nor:
[includes the exact string] [ignore punctuation, ignore blanks] [multi-polar]
because [includes the exact string] first finds documents containing all the whole words of the query (i.e. [multipolar] for the first one, and [multi] + [polar] for the other queries), then it filters out from the results the documents that do not contain the query as an exact string (optionally after stripping accents, punctuation, converting case etc)

You can however use:
[all items of type] [...]
[then apply advanced filter] [contents or any metadata] [contains the string] [ignore punctuation, ignore blanks] [multipolar]
This is however much slower, because here we don't search for any whole words in the index, but rather search linearly the given string in the raw text storage (using the plain text content that has been stored during indexing)

It is much faster to use, when possible:
[content, any metadata or filename] [includes all of the words] [someWholeWord]
[then apply advanced filter] [contents or any metadata] [contains the string] [ignore punctuation, ignore blanks] [multipolar]

But I think the most efficient is still to search for [multipolar | "multi polar"].


Jérôme - FoxTrot Engineering
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Problem with search—No index selected
Next Topic: Highlighting text, adding notes to PDFs in the FoxTrot preview
Goto Forum:
  


Current Time: Thu May 02 16:21:36 GMT+2 2024