Lucene.Net
3.0.3
Lucene.Net is a port of the Lucene search engine library, written in C# and targeted at .NET runtime users.
|
Expert: Common scoring functionality for different types of queries. More...
Inherits Lucene.Net.Search.DocIdSetIterator.
Inherited by Lucene.Net.Search.BooleanScorer, Lucene.Net.Search.BooleanScorer2, Lucene.Net.Search.BooleanScorer2.SingleMatchScorer, Lucene.Net.Search.BooleanScorer.BucketScorer, Lucene.Net.Search.ConjunctionScorer, Lucene.Net.Search.ConstantScoreQuery.ConstantScorer, Lucene.Net.Search.DisjunctionMaxScorer, Lucene.Net.Search.DisjunctionSumScorer, Lucene.Net.Search.FilteredQuery.AnonymousClassWeight.AnonymousClassScorer, Lucene.Net.Search.Function.CustomScoreQuery.CustomScorer, Lucene.Net.Search.Function.ValueSourceQuery.ValueSourceScorer, Lucene.Net.Search.MatchAllDocsQuery.MatchAllScorer, Lucene.Net.Search.PhraseScorer, Lucene.Net.Search.ReqExclScorer, Lucene.Net.Search.ReqOptSumScorer, Lucene.Net.Search.ScoreCachingWrappingScorer, Lucene.Net.Search.Spans.SpanScorer, Lucene.Net.Search.TermScorer, and Lucene.Net.Spatial.Util.FunctionQuery.AllScorer.
Public Member Functions | |
virtual void | Score (Collector collector) |
Scores and collects all matching documents. | |
virtual bool | Score (Collector collector, int max, int firstDocID) |
Expert: Collects matching documents in a range. Hook for optimization. Note, firstDocID is added to ensure that DocIdSetIterator.NextDoc() was called before this method. | |
abstract float | Score () |
Returns the score of the current document matching the query. Initially invalid, until DocIdSetIterator.NextDoc() or DocIdSetIterator.Advance(int) is called the first time, or when called from within Collector.Collect(int). | |
Public Member Functions inherited from Lucene.Net.Search.DocIdSetIterator | |
abstract int | DocID () |
Returns the following:
| |
abstract int | NextDoc () |
Advances to the next document in the set and returns the doc it is currently on, or NO_MORE_DOCS if there are no more docs in the set. | |
abstract int | Advance (int target) |
Advances to the first beyond the current whose document number is greater than or equal to target. Returns the current document number or NO_MORE_DOCS if there are no more docs in the set. Behaves as if written: | |
Properties | |
virtual Similarity | Similarity [get] |
Returns the Similarity implementation used by this scorer. | |
Additional Inherited Members | |
Static Public Attributes inherited from Lucene.Net.Search.DocIdSetIterator | |
static readonly int | NO_MORE_DOCS = System.Int32.MaxValue |
When returned by NextDoc(), Advance(int) and DocID() it means there are no more docs in the iterator. | |
Expert: Common scoring functionality for different types of queries.
A Scorer
iterates over documents matching a query in increasing order of doc Id.
Document scores are computed using a given Similarity
implementation.
NOTE: The values Float.Nan, Float.NEGATIVE_INFINITY and Float.POSITIVE_INFINITY are not valid scores. Certain collectors (eg TopScoreDocCollector ) will not properly collect hits with these scores.
|
virtual |
Scores and collects all matching documents.
collector | The collector to which all matching documents are passed. |
Reimplemented in Lucene.Net.Search.BooleanScorer, Lucene.Net.Search.BooleanScorer2, Lucene.Net.Search.DisjunctionSumScorer, Lucene.Net.Search.ScoreCachingWrappingScorer, and Lucene.Net.Search.TermScorer.
|
virtual |
Expert: Collects matching documents in a range. Hook for optimization. Note, firstDocID is added to ensure that DocIdSetIterator.NextDoc() was called before this method.
collector | The collector to which all matching documents are passed. |
max | Do not score documents past this. |
firstDocID | The first document ID (ensures DocIdSetIterator.NextDoc() is called before this method. |
Reimplemented in Lucene.Net.Search.BooleanScorer2, Lucene.Net.Search.BooleanScorer, Lucene.Net.Search.DisjunctionSumScorer, Lucene.Net.Search.TermScorer, and Lucene.Net.Search.ScoreCachingWrappingScorer.
|
pure virtual |
Returns the score of the current document matching the query. Initially invalid, until DocIdSetIterator.NextDoc() or DocIdSetIterator.Advance(int) is called the first time, or when called from within Collector.Collect(int).
Implemented in Lucene.Net.Search.BooleanScorer2, Lucene.Net.Search.BooleanScorer, Lucene.Net.Search.DisjunctionSumScorer, Lucene.Net.Spatial.Util.FunctionQuery.AllScorer, Lucene.Net.Search.ConjunctionScorer, Lucene.Net.Search.TermScorer, Lucene.Net.Search.PhraseScorer, Lucene.Net.Search.ReqExclScorer, Lucene.Net.Search.Spans.SpanScorer, Lucene.Net.Search.DisjunctionMaxScorer, Lucene.Net.Search.ReqOptSumScorer, and Lucene.Net.Search.ScoreCachingWrappingScorer.
|
get |
Returns the Similarity implementation used by this scorer.