public class LuceneIndexMatcher<T,V>
extends java.lang.Object
implements java.io.Closeable
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
INDEXED_LUCENE_FIELD_NAME |
Constructor and Description |
---|
LuceneIndexMatcher(<any> indexedFieldSelector,
<any> searchedFieldSelector) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
load(java.lang.Iterable<T> entities) |
java.util.List<T> |
match(V entity) |
LuceneIndexMatcher<T,V> |
setAnalyzer(Analyzer analyzer) |
void |
setDebug(boolean debug) |
LuceneIndexMatcher<T,V> |
setMaxResults(int maxResults) |
LuceneIndexMatcher<T,V> |
setMustMatchPercentage(double mustMatchPercentage) |
public static final java.lang.String INDEXED_LUCENE_FIELD_NAME
public LuceneIndexMatcher(<any> indexedFieldSelector, <any> searchedFieldSelector)
public void load(java.lang.Iterable<T> entities) throws EntityMatcherException
EntityMatcherException
public java.util.List<T> match(V entity) throws EntityMatcherException
EntityMatcherException
public LuceneIndexMatcher<T,V> setMustMatchPercentage(double mustMatchPercentage)
public LuceneIndexMatcher<T,V> setMaxResults(int maxResults)
public LuceneIndexMatcher<T,V> setAnalyzer(Analyzer analyzer)
public void setDebug(boolean debug)
public void close()
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable