@Immutable @ThreadSafe public class Searcher extends Object
LuceneIndexProvider
Modifier and Type | Class and Description |
---|---|
protected static interface |
Searcher.Searchable<T> |
protected class |
Searcher.SearchManagerRefresher |
Modifier and Type | Field and Description |
---|---|
protected static float |
DEFAULT_SCORE |
Modifier | Constructor and Description |
---|---|
protected |
Searcher(LuceneConfig config,
org.apache.lucene.index.IndexWriter writer,
String name) |
Modifier and Type | Method and Description |
---|---|
protected void |
close() |
protected long |
estimateCardinality(List<Constraint> andedConstraints,
LuceneQueryFactory queryFactory) |
protected Filter.Results |
filter(IndexConstraints indexConstraints,
LuceneQueryFactory queryFactory) |
protected org.apache.lucene.document.Document |
loadDocumentById(String id) |
protected void |
refreshSearchManager(boolean async) |
protected <T> T |
search(Searcher.Searchable<T> searchable,
boolean useScoring,
boolean refreshReader) |
protected static final float DEFAULT_SCORE
protected Searcher(LuceneConfig config, org.apache.lucene.index.IndexWriter writer, String name)
protected void close()
protected Filter.Results filter(IndexConstraints indexConstraints, LuceneQueryFactory queryFactory)
protected long estimateCardinality(List<Constraint> andedConstraints, LuceneQueryFactory queryFactory) throws IOException
IOException
protected org.apache.lucene.document.Document loadDocumentById(String id) throws IOException
IOException
protected void refreshSearchManager(boolean async)
protected <T> T search(Searcher.Searchable<T> searchable, boolean useScoring, boolean refreshReader)
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.