public class RecordingSearcher
extends IndexSearcher
Applications usually need only call the inherited Searcher.search(Query)
or Searcher.search(Query,Filter)
methods.
Modifier and Type | Field and Description |
---|---|
private IndexReader |
reader |
private Vector |
registered |
Constructor and Description |
---|
RecordingSearcher(IndexReader r)
Creates a searcher searching the provided index.
|
Modifier and Type | Method and Description |
---|---|
void |
registerRecordingScorer(SpanRecordingScorer scorer) |
void |
search(Query query,
Filter filter,
SpanHitCollector results)
Lower-level search API which supports span collection.
|
void |
search(Query query,
SpanHitCollector results)
Lower-level search API which supports span collection.
|
close, doc, docFreq, explain, getIndexReader, maxDoc, rewrite, search, search, search
public RecordingSearcher(IndexReader r)
public void search(Query query, SpanHitCollector results) throws IOException
SpanHitCollector.collect(int,float,FieldSpanSource)
is called
for every non-zero scoring document.
IOException
public void search(Query query, Filter filter, SpanHitCollector results) throws IOException
SpanHitCollector.collect(int,float,FieldSpanSource)
is called
for every non-zero scoring document which matches the filter.
IOException
public void registerRecordingScorer(SpanRecordingScorer scorer)