Expert: Returns the Similarity implementation to be used for this query. Subclasses may override this method to specify their own Similarity implementation, perhaps one that delegates through that of the Searcher. By default the Searcher's Similarity implementation is returned.

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

Syntax

C#
public virtual Similarity GetSimilarity(
	Searcher searcher
)
Visual Basic
Public Overridable Function GetSimilarity ( _
	searcher As Searcher _
) As Similarity
Visual C++
public:
virtual Similarity^ GetSimilarity(
	Searcher^ searcher
)

Parameters

searcher
Type: Lucene.Net.Search..::..Searcher

[Missing <param name="searcher"/> documentation for "M:Lucene.Net.Search.Query.GetSimilarity(Lucene.Net.Search.Searcher)"]

Return Value

[Missing <returns> documentation for "M:Lucene.Net.Search.Query.GetSimilarity(Lucene.Net.Search.Searcher)"]

See Also