Lucene.Net.Search.FieldComparator.SetScorer C# (CSharp) Method

SetScorer() public method

Sets the Scorer to use in case a document's score is needed.
public SetScorer ( Lucene.Net.Search.Scorer scorer ) : void
scorer Lucene.Net.Search.Scorer Scorer instance that you should use to /// obtain the current hit's score, if necessary. ///
return void
        public virtual void SetScorer(Scorer scorer)
        {
            // Empty implementation since most comparators don't need the score. This
            // can be overridden by those that need it.
        }

Usage Example

Beispiel #1
0
 public override void  SetScorer(Scorer scorer)
 {
     comparator.SetScorer(scorer);
 }