Method CustomExplain
CustomExplain(Int32, Explanation, Explanation[])
Explain the custom score. Whenever overriding CustomScore(Int32, Single, Single[]), this method should also be overridden to provide the correct explanation for the part of the custom scoring.
Declaration
public virtual Explanation CustomExplain(int doc, Explanation subQueryExpl, Explanation[] valSrcExpls)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | doc | doc being explained |
Explanation | subQueryExpl | explanation for the sub-query part |
Explanation[] | valSrcExpls | explanation for the value source part |
Returns
Type | Description |
---|---|
Explanation | an explanation for the custom score |
CustomExplain(Int32, Explanation, Explanation)
Explain the custom score. Whenever overriding CustomScore(Int32, Single, Single), this method should also be overridden to provide the correct explanation for the part of the custom scoring.
Declaration
public virtual Explanation CustomExplain(int doc, Explanation subQueryExpl, Explanation valSrcExpl)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | doc | doc being explained |
Explanation | subQueryExpl | explanation for the sub-query part |
Explanation | valSrcExpl | explanation for the value source part |
Returns
Type | Description |
---|---|
Explanation | an explanation for the custom score |