Returns the boost factor for hits for this field.

The default value is 1.0.

Note: this value is not stored directly with the document in the index. Documents returned from {@link Lucene.Net.Index.IndexReader#Document(int)} and {@link Lucene.Net.Search.Hits#Doc(int)} may thus not have the same value present as when this field was indexed.

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

Syntax

C#
public virtual float GetBoost()
Visual Basic
Public Overridable Function GetBoost As Single
Visual C++
public:
virtual float GetBoost()

Return Value

[Missing <returns> documentation for "M:Lucene.Net.Documents.AbstractField.GetBoost"]

Implements

Fieldable..::..GetBoost()()()()

See Also