Expert: A Query that sets the scores of document to the values obtained from a {@link Lucene.Net.Search.Function.ValueSource ValueSource}.

This query provides a score for each and every undeleted document in the index.

The value source can be based on a (cached) value of an indexed field, but it can also be based on an external source, e.g. values read from an external database.

Score is set as: Score(doc,query) = query.getBoost()2 * valueSource(doc).

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 ValueSourceQuery : Query
Visual Basic
<SerializableAttribute> _
Public Class ValueSourceQuery _
	Inherits Query
Visual C++
[SerializableAttribute]
public ref class ValueSourceQuery : public Query

Inheritance Hierarchy

System..::..Object
  Lucene.Net.Search..::..Query
    Lucene.Net.Search.Function..::..ValueSourceQuery
      Lucene.Net.Search.Function..::..FieldScoreQuery

See Also