public class LuxSearcher
extends org.apache.lucene.search.IndexSearcher
| Constructor and Description |
|---|
LuxSearcher(org.apache.lucene.store.Directory dir)
creates a Lux searcher that searches the given
Directory. |
LuxSearcher(org.apache.lucene.index.IndexReader reader)
The reader will be managed by this LuxSearcher: when the searcher is closed, it will close the
underlying reader, unlike in the other constructors, where the reader is expected to be managed externally.
|
LuxSearcher(org.apache.lucene.search.IndexSearcher searcher)
creates a Lux searcher based on an existing Lucene IndexSearcher
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
org.apache.lucene.search.DocIdSetIterator |
search(org.apache.lucene.search.Query query) |
org.apache.lucene.search.DocIdSetIterator |
search(org.apache.lucene.search.Query query,
org.apache.lucene.search.Sort sort) |
org.apache.lucene.search.DocIdSetIterator |
searchOrdered(org.apache.lucene.search.Query query) |
collectionStatistics, createNormalizedWeight, doc, doc, doc, document, explain, explain, getDefaultSimilarity, getIndexReader, getSimilarity, getTopReaderContext, rewrite, search, search, search, search, search, search, search, search, search, search, search, search, search, searchAfter, searchAfter, searchAfter, searchAfter, searchAfter, setSimilarity, slices, termStatistics, toString, wrapFilterpublic LuxSearcher(org.apache.lucene.store.Directory dir)
throws IOException
Directory.dir - the Directory containing the index to searchIOException - if the Directory cannot be openedpublic LuxSearcher(org.apache.lucene.search.IndexSearcher searcher)
searcher - the underlying IndexSearcherpublic LuxSearcher(org.apache.lucene.index.IndexReader reader)
reader - public void close()
throws IOException
IOExceptionpublic org.apache.lucene.search.DocIdSetIterator search(org.apache.lucene.search.Query query)
throws IOException
query - the Lucene queryIOExceptionpublic org.apache.lucene.search.DocIdSetIterator search(org.apache.lucene.search.Query query,
org.apache.lucene.search.Sort sort)
throws IOException
query - the Lucene querysort - the sort criteriaIOExceptionpublic org.apache.lucene.search.DocIdSetIterator searchOrdered(org.apache.lucene.search.Query query)
throws IOException
query - the Lucene queryIOExceptionCopyright © 2013. All Rights Reserved.