Class ExplanationAsserter
Asserts that the score explanation for every document matching a query corresponds with the true score.
NOTE: this HitCollector should only be used with the Lucene.
Inheritance
System.Object
ExplanationAsserter
Implements
Lucene.Net.Search.ICollector
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Lucene.Net.Search
Assembly: Lucene.Net.TestFramework.dll
Syntax
public class ExplanationAsserter : ICollector
Constructors
| Improve this Doc View SourceExplanationAsserter(Query, String, IndexSearcher)
Constructs an instance which does shallow tests on the Explanation
Declaration
public ExplanationAsserter(Query q, string defaultFieldName, IndexSearcher s)
Parameters
Type | Name | Description |
---|---|---|
Lucene. |
q | |
System. |
defaultFieldName | |
Lucene. |
s |
ExplanationAsserter(Query, String, IndexSearcher, Boolean)
Declaration
public ExplanationAsserter(Query q, string defaultFieldName, IndexSearcher s, bool deep)
Parameters
Type | Name | Description |
---|---|---|
Lucene. |
q | |
System. |
defaultFieldName | |
Lucene. |
s | |
System. |
deep |
Properties
| Improve this Doc View SourceAcceptsDocsOutOfOrder
Declaration
public virtual bool AcceptsDocsOutOfOrder { get; }
Property Value
Type | Description |
---|---|
System. |
Methods
| Improve this Doc View SourceCollect(Int32)
Declaration
public virtual void Collect(int doc)
Parameters
Type | Name | Description |
---|---|---|
System. |
doc |
SetNextReader(AtomicReaderContext)
Declaration
public virtual void SetNextReader(AtomicReaderContext context)
Parameters
Type | Name | Description |
---|---|---|
Lucene. |
context |
SetScorer(Scorer)
Declaration
public virtual void SetScorer(Scorer scorer)
Parameters
Type | Name | Description |
---|---|---|
Lucene. |
scorer |
Implements
Lucene.Net.Search.ICollector