public class OrderedNGramMatchingFilter
extends org.apache.lucene.search.Filter
ConfluenceNGramTokenFilter
.Constructor and Description |
---|
OrderedNGramMatchingFilter(String fieldName,
String query,
org.apache.lucene.analysis.Analyzer queryAnalyzer)
Matches the query specified as one cohesive token.
|
Modifier and Type | Method and Description |
---|---|
org.apache.lucene.search.DocIdSet |
getDocIdSet(org.apache.lucene.index.AtomicReaderContext context,
org.apache.lucene.util.Bits acceptDocs) |
public OrderedNGramMatchingFilter(String fieldName, String query, org.apache.lucene.analysis.Analyzer queryAnalyzer)
fieldName
- the name of the field that filtering will be performed onquery
- the query to search onqueryAnalyzer
- the analyer used to tokenize the fieldName into n-gramsIllegalArgumentException
- if fieldName or queryAnalyzer is null.public org.apache.lucene.search.DocIdSet getDocIdSet(org.apache.lucene.index.AtomicReaderContext context, org.apache.lucene.util.Bits acceptDocs) throws IOException
getDocIdSet
in class org.apache.lucene.search.Filter
IOException
Copyright © 2003–2015 Atlassian. All rights reserved.