Returns, at indexing time, the boost factor as set by {@link #SetBoost(float)}.

Note that once a document is indexed this value is no longer available from the index. At search time, for retrieved documents, this method always returns 1. This however does not mean that the boost value set at indexing time was ignored - it was just combined with other indexing time factors and stored elsewhere, for better indexing and search performance. (For more information see the "norm(t,d)" part of the scoring formula in {@link Lucene.Net.Search.Similarity Similarity}.)

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

Syntax

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

Return Value

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

See Also