The standard query parser supports two types of wildcard searches within a single term. They are single (?) and multiple (*) characters. They can be applied to single terms only, and not to search phrases. For example:
Wildcard search type |
Special character |
Search example |
Single character (matches a single character) |
? |
Searching for a string te?t will match test and text. |
Multiple characters (matches zero or more sequential characters) |
* |
Searching for string tes* will match test, testing, and tester. The wildcard characters can be used at the beginning, middle, or end of a term. For example, the string te*t will match test and text, and *est will match pest and test. |