Query that sets document score as a programmatic function of several (sub) scores:
  1. the score of its subQuery (any query)
  2. (optional) the score of its ValueSourceQuery (or queries). For most simple/convenient use cases this query is likely to be a {@link Lucene.Net.Search.Function.FieldScoreQuery FieldScoreQuery}
Subclasses can modify the computation by overriding {@link #getCustomScoreProvider}.

WARNING: The status of the Search.Function package is experimental. The APIs introduced here might change in the future and will not be supported anymore in such a case.

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

Syntax

C#
[SerializableAttribute]
public class CustomScoreQuery : Query, 
	ICloneable
Visual Basic
<SerializableAttribute> _
Public Class CustomScoreQuery _
	Inherits Query _
	Implements ICloneable
Visual C++
[SerializableAttribute]
public ref class CustomScoreQuery : public Query, 
	ICloneable

Inheritance Hierarchy

System..::..Object
  Lucene.Net.Search..::..Query
    Lucene.Net.Search.Function..::..CustomScoreQuery

See Also