Compute a custom score by the subQuery score and a number of ValueSourceQuery scores. The doc is relative to the current reader, which is unknown to CustomScoreQuery when using per-segment search (since Lucene 2.9). Please override {@link #getCustomScoreProvider} and return a subclass of {@link CustomScoreProvider} for the given {@link IndexReader}. see CustomScoreProvider#customScore(int,float,float[])

Namespace: Lucene.Net.Search.Function
Assembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1

Syntax

C#
[ObsoleteAttribute("Will be removed in Lucene 3.1")]
public virtual float CustomScore(
	int doc,
	float subQueryScore,
	float[] valSrcScores
)
Visual Basic
<ObsoleteAttribute("Will be removed in Lucene 3.1")> _
Public Overridable Function CustomScore ( _
	doc As Integer, _
	subQueryScore As Single, _
	valSrcScores As Single() _
) As Single
Visual C++
[ObsoleteAttribute(L"Will be removed in Lucene 3.1")]
public:
virtual float CustomScore(
	int doc, 
	float subQueryScore, 
	array<float>^ valSrcScores
)

Parameters

doc
Type: System..::..Int32

[Missing <param name="doc"/> documentation for "M:Lucene.Net.Search.Function.CustomScoreQuery.CustomScore(System.Int32,System.Single,System.Single[])"]

subQueryScore
Type: System..::..Single

[Missing <param name="subQueryScore"/> documentation for "M:Lucene.Net.Search.Function.CustomScoreQuery.CustomScore(System.Int32,System.Single,System.Single[])"]

valSrcScores
Type: array<System..::..Single>[]()[][]

[Missing <param name="valSrcScores"/> documentation for "M:Lucene.Net.Search.Function.CustomScoreQuery.CustomScore(System.Int32,System.Single,System.Single[])"]

Return Value

[Missing <returns> documentation for "M:Lucene.Net.Search.Function.CustomScoreQuery.CustomScore(System.Int32,System.Single,System.Single[])"]

See Also