A query that wraps a filter and simply returns a constant score equal to the query boost for every document in the filter.

The ConstantScoreQuery..::..ConstantScorer type exposes the following members.

Constructors

  NameDescription
Public methodConstantScoreQuery..::..ConstantScorer
Initializes a new instance of the ConstantScoreQuery..::..ConstantScorer class

Methods

  NameDescription
Public methodAdvance (Overrides DocIdSetIterator..::..Advance(Int32).)
Public methodDoc Obsolete. (Overrides DocIdSetIterator..::..Doc()()()().)
Public methodDocID (Overrides DocIdSetIterator..::..DocID()()()().)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodExplain (Overrides Scorer..::..Explain(Int32).)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetSimilarity
Returns the Similarity implementation used by this scorer.
(Inherited from Scorer.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodNext Obsolete. (Overrides DocIdSetIterator..::..Next()()()().)
Public methodNextDoc (Overrides DocIdSetIterator..::..NextDoc()()()().)
Public methodScore()()()() (Overrides Scorer..::..Score()()()().)
Public methodScore(Collector)
Scores and collects all matching documents.
(Inherited from Scorer.)
Public methodScore(HitCollector) Obsolete.
Scores and collects all matching documents.
(Inherited from Scorer.)
Protected methodScore(HitCollector, Int32) Obsolete.
Expert: Collects matching documents in a range. Hook for optimization. Note that {@link #Next()} must be called once before this method is called for the first time.
(Inherited from Scorer.)
Public methodScore(Collector, Int32, Int32)
Expert: Collects matching documents in a range. Hook for optimization. Note,
CopyC#
firstDocID
is added to ensure that {@link #NextDoc()} was called before this method.
(Inherited from Scorer.)
Public methodSkipTo Obsolete. (Overrides DocIdSetIterator..::..SkipTo(Int32).)
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)

Properties

  NameDescription
Public propertyEnclosing_Instance

See Also