| java.lang.Object |
| ↳ |
org.apache.lucene.search.Filter |
| |
↳ |
com.atlassian.confluence.search.lucene.filter.OrderedNGramMatchingFilter |
Class Overview
Filter that leaves only documents that contain term(s) that match the supplied query
in its entirety (no partial matching is permitted). This filter effectively
implements a "*foo*" search (without incurring a potentially expensive leading
and/or trailing wildcard search).
Summary
|
[Expand]
Inherited Methods |
From class
org.apache.lucene.search.Filter
|
BitSet
|
bits(IndexReader arg0)
|
|
DocIdSet
|
getDocIdSet(IndexReader arg0)
|
|
From class
java.lang.Object
|
Object
|
clone()
|
|
boolean
|
equals(Object arg0)
|
|
void
|
finalize()
|
|
final
Class<?>
|
getClass()
|
|
int
|
hashCode()
|
|
final
void
|
notify()
|
|
final
void
|
notifyAll()
|
|
String
|
toString()
|
|
final
void
|
wait()
|
|
final
void
|
wait(long arg0, int arg1)
|
|
final
void
|
wait(long arg0)
|
|
Public Constructors
public
OrderedNGramMatchingFilter
(String fieldName, String query, Analyzer queryAnalyzer)
Matches the query specified as one cohesive token. If multiple space delimited
terms are specified, filtering will be performed on all terms and the result will be AND-ed. If a single term query is specified
that is shorter than the length of the smallest n-gram produced by the analyzer, this filter will return an empty bitset.
Parameters
| fieldName
| the name of the field that filtering will be performed on |
| query
| the query to search on |
| queryAnalyzer
| the analyer used to tokenize the fieldName into n-grams |
Public Methods
public
BitSet
bits
(IndexReader reader)