public class


extends TokenFilter
   ↳ org.apache.lucene.util.AttributeSource
     ↳ org.apache.lucene.analysis.TokenStream
       ↳ org.apache.lucene.analysis.TokenFilter
         ↳ com.atlassian.jira.issue.index.analyzer.WildcardFilter

Class Overview

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)


char WILDCARD_OPERATOR Wildcrad character: U+002A (ASTERISK)
Inherited Fields
From class org.apache.lucene.analysis.TokenFilter
Public Constructors
WildcardFilter(TokenStream in)
Public Methods
final boolean incrementToken()
Inherited Methods
From class org.apache.lucene.analysis.TokenFilter
From class org.apache.lucene.analysis.TokenStream
From class org.apache.lucene.util.AttributeSource
From class java.lang.Object
From interface
From interface java.lang.AutoCloseable


public static final char WILDCARD_OPERATOR

Wildcrad character: U+002A (ASTERISK)

Constant Value: 42 (0x0000002a)

Public Constructors

public WildcardFilter (TokenStream in)

Public Methods

public final boolean incrementToken ()