|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.lucene.search.Searcher
org.apache.lucene.search.IndexSearcher
org.apache.lucene.search.CheckHits.ExplanationAssertingSearcher
public static class CheckHits.ExplanationAssertingSearcher
an IndexSearcher that implicitly checks hte explanation of every match whenever it executes a search.
CheckHits.ExplanationAsserter| Field Summary |
|---|
| Fields inherited from class org.apache.lucene.search.IndexSearcher |
|---|
docStarts, subReaders, subSearchers |
| Constructor Summary | |
|---|---|
CheckHits.ExplanationAssertingSearcher(IndexReader r)
|
|
| Method Summary | |
|---|---|
protected void |
checkExplanations(Query q)
|
void |
search(Query query,
Collector results)
Lower-level search API. |
void |
search(Query query,
Filter filter,
Collector results)
Lower-level search API. |
TopDocs |
search(Query query,
Filter filter,
int n)
Finds the top n
hits for query, applying filter if non-null. |
TopFieldDocs |
search(Query query,
Filter filter,
int n,
Sort sort)
Search implementation with arbitrary sorting. |
| Methods inherited from class org.apache.lucene.search.IndexSearcher |
|---|
close, createNormalizedWeight, doc, doc, docFreq, explain, explain, gatherSubReaders, getIndexReader, getSimilarity, getSubReaders, maxDoc, rewrite, search, search, search, search, search, search, search, searchAfter, searchAfter, setDefaultFieldSortScoring, setSimilarity, toString |
| Methods inherited from class org.apache.lucene.search.Searcher |
|---|
createWeight, docFreqs |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CheckHits.ExplanationAssertingSearcher(IndexReader r)
throws IOException
IOException| Method Detail |
|---|
protected void checkExplanations(Query q)
throws IOException
IOException
public TopFieldDocs search(Query query,
Filter filter,
int n,
Sort sort)
throws IOException
IndexSearchern hits for query, applying
filter if non-null, and sorting the hits by the criteria in
sort.
NOTE: this does not compute scores by default; use
IndexSearcher.setDefaultFieldSortScoring(boolean, boolean) to
enable scoring.
search in class IndexSearcherIOException
public void search(Query query,
Collector results)
throws IOException
IndexSearcherCollector.collect(int) is called for every matching document.
Applications should only use this if they need all of the
matching documents. The high-level search API (Searcher.search(Query, int)) is usually more efficient, as it skips
non-high-scoring hits.
Note: The score passed to this method is a raw score.
In other words, the score will not necessarily be a float whose value is
between 0 and 1.
search in class IndexSearcherIOException
public void search(Query query,
Filter filter,
Collector results)
throws IOException
IndexSearcherCollector.collect(int) is called for every matching
document.
Collector-based access to remote indexes is discouraged.
Applications should only use this if they need all of the
matching documents. The high-level search API (Searcher.search(Query, Filter, int)) is usually more efficient, as it skips
non-high-scoring hits.
search in class IndexSearcherquery - to match documentsfilter - if non-null, used to permit documents to be collected.results - to receive hits
IOException
public TopDocs search(Query query,
Filter filter,
int n)
throws IOException
IndexSearchern
hits for query, applying filter if non-null.
search in class IndexSearcherIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||