Method GetPrefixQuery
GetPrefixQuery(String, String)
Called when parser parses an input term that uses prefix notation; that is, contains a single '*' wildcard character as its last character. Since this is a special case of generic wildcard term, and such a query can be optimized easily, this usually results in a different query object.
Depending on analyzer and settings, a prefix term may (most probably will) be lower-cased automatically. It will go through the default Analyzer.
Overrides super class, by passing terms through analyzer.
Declaration
protected override Query GetPrefixQuery(string field, string termStr)
Parameters
Type | Name | Description |
---|---|---|
System.String | field | Name of the field query will use. |
System.String | termStr | Term to use for building term for the query (without trailing '*' character!) |
Returns
Type | Description |
---|---|
Query | Resulting Query built for the term |