java.lang.Object | ||||
↳ | org.apache.lucene.util.AttributeSource | |||
↳ | org.apache.lucene.analysis.TokenStream | |||
↳ | org.apache.lucene.analysis.TokenFilter | |||
↳ | com.atlassian.jira.issue.index.analyzer.WildcardFilter |
This Filter adds wildcards to the tokens returned by standard filters.
It can be difficult to do wild card search over a stemmed index - for example 'feature' will be stemmed to feature and if you search for 'feature*' you will not match 'feature'. To search for 'feature*' then stem first and then wildcard.
The need for this was highlighted by (JRA-19918)
This filter stems and then appends the wildcard to each existing token, so it makes no sense for it not to be the final filter in the chain. note that the query returned will actually not work (it will look for the litral * as it is a term query - use the query to get the text and then search)
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
char | WILDCARD_OPERATOR | Wildcrad character: U+002A (ASTERISK) |
[Expand]
Inherited Fields | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
![]()
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
[Expand]
Inherited Methods | |||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||||||||||||||||||||||||||||||||||||||
![]() | |||||||||||||||||||||||||||||||||||||||||||||||
![]() | |||||||||||||||||||||||||||||||||||||||||||||||
![]() | |||||||||||||||||||||||||||||||||||||||||||||||
![]() | |||||||||||||||||||||||||||||||||||||||||||||||
![]() |
Wildcrad character: U+002A (ASTERISK)