Method CustomExplain
CustomExplain(Int32, Explanation, Explanation[])
Explain the custom score.
The doc is relative to the current reader, which is unknown to CustomScoreQuery when using per-segment search (since Lucene 2.9). Please override GetCustomScoreProvider(IndexReader) and return a subclass of CustomScoreProvider for the given IndexReader.
Declaration
public virtual Explanation CustomExplain(int doc, Explanation subQueryExpl, Explanation[] valSrcExpls)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | doc | |
Explanation | subQueryExpl | |
Explanation[] | valSrcExpls |
Returns
Type | Description |
---|---|
Explanation |
CustomExplain(Int32, Explanation, Explanation)
Explain the custom score. The doc is relative to the current reader, which is unknown to CustomScoreQuery when using per-segment search (since Lucene 2.9). Please override GetCustomScoreProvider(IndexReader) and return a subclass of CustomScoreProvider for the given IndexReader.
Declaration
public virtual Explanation CustomExplain(int doc, Explanation subQueryExpl, Explanation valSrcExpl)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | doc | |
Explanation | subQueryExpl | |
Explanation | valSrcExpl |
Returns
Type | Description |
---|---|
Explanation |