Class PayloadNearQuery.PayloadNearSpanWeight
Inherited Members
Namespace: Lucene.Net.Search.Payloads
Assembly: Lucene.Net.dll
Syntax
public class PayloadNearQuery.PayloadNearSpanWeight : SpanWeight
Constructors
PayloadNearSpanWeight(PayloadNearQuery, SpanQuery, IndexSearcher)
Declaration
public PayloadNearSpanWeight(PayloadNearQuery outerInstance, SpanQuery query, IndexSearcher searcher)
Parameters
Type | Name | Description |
---|---|---|
PayloadNearQuery | outerInstance | |
SpanQuery | query | |
IndexSearcher | searcher |
Methods
Explain(AtomicReaderContext, int)
An explanation of the score computation for the named document.
Declaration
public override Explanation Explain(AtomicReaderContext context, int doc)
Parameters
Type | Name | Description |
---|---|---|
AtomicReaderContext | context | The readers context to create the Explanation for. |
int | doc | The document's id relative to the given context's reader |
Returns
Type | Description |
---|---|
Explanation | An Explanation for the score |
Overrides
Exceptions
Type | Condition |
---|---|
IOException | if an IOException occurs |
GetScorer(AtomicReaderContext, IBits)
Returns a Scorer which scores documents in/out-of order according
to scoreDocsInOrder
.
scoreDocsInOrder
is false
, it is
recommended to check whether the returned Scorer indeed scores
documents out of order (i.e., call ScoresDocsOutOfOrder), as
some Scorer implementations will always return documents
in-order.
NOTE:null
can be returned if no documents will be scored by this
query.
Declaration
public override Scorer GetScorer(AtomicReaderContext context, IBits acceptDocs)
Parameters
Type | Name | Description |
---|---|---|
AtomicReaderContext | context | The AtomicReaderContext for which to return the Scorer. |
IBits | acceptDocs | IBits that represent the allowable docs to match (typically deleted docs but possibly filtering other documents) |
Returns
Type | Description |
---|---|
Scorer | A Scorer which scores documents in/out-of order. |
Overrides
Exceptions
Type | Condition |
---|---|
IOException | if there is a low-level I/O error |