A query that scores each document as the value of the numeric input field.
The query matches all documents, and scores each document according to the numeric
value of that field.
It is assumed, and expected, that:
Namespace: Lucene.Net.Search.Function- The field used here is indexed, and has exactly one token in every scored document.
- Best if this field is un_tokenized.
- That token is parsable to the selected type.
- {@link Type#BYTE} consumes 1 * maxDocs bytes.
- {@link Type#SHORT} consumes 2 * maxDocs bytes.
- {@link Type#INT} consumes 4 * maxDocs bytes.
- {@link Type#FLOAT} consumes 8 * maxDocs bytes.
Assembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1
Syntax
C# |
---|
[SerializableAttribute] public class FieldScoreQuery : ValueSourceQuery |
Visual Basic |
---|
<SerializableAttribute> _ Public Class FieldScoreQuery _ Inherits ValueSourceQuery |
Visual C++ |
---|
[SerializableAttribute] public ref class FieldScoreQuery : public ValueSourceQuery |
Inheritance Hierarchy
System..::..Object
Lucene.Net.Search..::..Query
Lucene.Net.Search.Function..::..ValueSourceQuery
Lucene.Net.Search.Function..::..FieldScoreQuery
Lucene.Net.Search..::..Query
Lucene.Net.Search.Function..::..ValueSourceQuery
Lucene.Net.Search.Function..::..FieldScoreQuery