Markus Atteneder writes:
 There is a possibility for searching with the "*" and "?" wildcard at the
 end and in the middle of a search string, but not at the beginning, is there
 way to do this?

Sure. Simply index reversed words.

The reason why QP prohibits wildcards at the beginning is performance.
If there is some prefix, only terms using this prefix need to be examined,
if they match the wildcard.
IIRC you can use wildcards in the beginning if you create the query using
the api but it will be slow.

So the performant solution is to have an additional field containing the
tokens in reversed character order.
Won't help for *foo* though.

You can also index ngrams - say 3-grams. Every word gets tokenized & indexed as a sequence of three letter sub-strings. E.g. "tokenized" would be indexed as "tok" "oke" "ken" "eni" "niz" "ize" "zed".

That would help you find *foo*, but not *ha*.

-- Ken
--
Ken Krugler
TransPac Software, Inc.
<http://www.transpac.com>
+1 530-470-9200

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to