Compute a custom score by the subQuery score and the ValueSourceQuery 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 {@link #getCustomScoreProvider} and return a subclass
of {@link CustomScoreProvider} for the given {@link IndexReader}.
@see CustomScoreProvider#customScore(int,float,float)
Namespace: Lucene.Net.Search.FunctionAssembly: 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 valSrcScore ) |
Visual Basic |
---|
<ObsoleteAttribute("Will be removed in Lucene 3.1")> _ Public Overridable Function CustomScore ( _ doc As Integer, _ subQueryScore As Single, _ valSrcScore As Single _ ) As Single |
Visual C++ |
---|
[ObsoleteAttribute(L"Will be removed in Lucene 3.1")] public: virtual float CustomScore( int doc, float subQueryScore, float valSrcScore ) |
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)"]
- valSrcScore
- Type: System..::..Single
[Missing <param name="valSrcScore"/> 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)"]