Lucene.Net
3.0.3
Lucene.Net is a .NET port of the Java Lucene Indexing Library
|
Expert: A Scorer
for documents matching a Term
.
More...
Inherits Lucene.Net.Search.Scorer.
Public Member Functions | |
TermScorer (Weight weight, TermDocs td, Similarity similarity, byte[] norms) | |
Construct a TermScorer . | |
override void | Score (Collector c) |
Scores and collects all matching documents. | |
override bool | Score (Collector c, int end, 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. | |
override int | DocID () |
Returns the following:
| |
override int | NextDoc () |
Advances to the next document matching the query. The iterator over the matching documents is buffered using TermDocs.Read(int[],int[]). | |
override 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). | |
override int | Advance (int target) |
Advances to the first match beyond the current whose document number is greater than or equal to a given target. The implementation uses TermDocs.SkipTo(int). | |
override System.String | ToString () |
Returns a string representation of this TermScorer . | |
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. | |
Properties inherited from Lucene.Net.Search.Scorer | |
virtual Similarity | Similarity [get] |
Returns the Similarity implementation used by this scorer. | |
Expert: A Scorer
for documents matching a Term
.
Definition at line 26 of file TermScorer.cs.
Lucene.Net.Search.TermScorer.TermScorer | ( | Weight | weight, |
TermDocs | td, | ||
Similarity | similarity, | ||
byte[] | norms | ||
) |
Construct a TermScorer
.
weight | The weight of the Term in the query. |
td | An iterator over the documents matching the Term . |
similarity | The Similarity implementation to be used for score computations. |
norms | The field norms of the document fields for the Term . |
Definition at line 57 of file TermScorer.cs.
|
virtual |
Advances to the first match beyond the current whose document number is greater than or equal to a given target.
The implementation uses TermDocs.SkipTo(int).
target | The target document number. |
Implements Lucene.Net.Search.DocIdSetIterator.
Definition at line 151 of file TermScorer.cs.
|
virtual |
Returns the following:
Implements Lucene.Net.Search.DocIdSetIterator.
Definition at line 101 of file TermScorer.cs.
|
virtual |
Advances to the next document matching the query.
The iterator over the matching documents is buffered using TermDocs.Read(int[],int[]).
Implements Lucene.Net.Search.DocIdSetIterator.
Definition at line 113 of file TermScorer.cs.
|
virtual |
Scores and collects all matching documents.
collector | The collector to which all matching documents are passed. |
Reimplemented from Lucene.Net.Search.Scorer.
Definition at line 68 of file TermScorer.cs.
|
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 from Lucene.Net.Search.Scorer.
Definition at line 74 of file TermScorer.cs.
|
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).
Implements Lucene.Net.Search.Scorer.
Definition at line 133 of file TermScorer.cs.
override System.String Lucene.Net.Search.TermScorer.ToString | ( | ) |
Returns a string representation of this TermScorer
.
Definition at line 179 of file TermScorer.cs.