The Weight type exposes the following members.

Constructors

  NameDescription
Protected methodWeight
Initializes a new instance of the Weight class

Methods

  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodExplain
An explanation of the score computation for the named document.
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 methodGetQuery
The query that this concerns.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetValue
The weight for this query.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodNormalize
Assigns the query normalization factor to this.
Public methodScorer
Returns a {@link Scorer} which scores documents in/out-of order according to
CopyC#
scoreDocsInOrder
.

NOTE: even if

CopyC#
scoreDocsInOrder
is false, it is recommended to check whether the returned
CopyC#
Scorer
indeed scores documents out of order (i.e., call {@link #ScoresDocsOutOfOrder()}), as some
CopyC#
Scorer
implementations will always return documents in-order.
NOTE: null can be returned if no documents will be scored by this query.
Public methodScoresDocsOutOfOrder
Returns true iff this implementation scores docs only out of order. This method is used in conjunction with {@link Collector}'s {@link Collector#AcceptsDocsOutOfOrder() acceptsDocsOutOfOrder} and {@link #Scorer(Lucene.Net.Index.IndexReader, boolean, boolean)} to create a matching {@link Scorer} instance for a given {@link Collector}, or vice versa.

NOTE: the default implementation returns

CopyC#
false
, i.e. the
CopyC#
Scorer
scores documents in-order.
Public methodSumOfSquaredWeights
The sum of squared weights of contained query clauses.
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)

See Also