What wildcard search support is available from Lucene?
Created May 7, 2012
Lucene refers to this type of a query as a 'prefix query'.
Lucene also supports wild card queries which allow you to place a wild card in the middle of the query term.
Another wild card character that you can use is '?', a question mark. The ? will match a single character. This allows you to perform queries such as
Bra?il.
Note: Leading wildcards (e.g. *ook) are not supported.
For instance, you could make searches like: mi*pelling.
That will match both misspelling, which is the correct way to spell this word, as well as mispelling, which is a common spelling mistake.
Such a query will match both Brasil and Brazil.
Lucene refers to this type of a query as a 'wildcard query'.