Expert: called to re-write queries into primitive queries. For example, a PrefixQuery will be rewritten into a BooleanQuery that consists of TermQuerys.

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

Syntax

C#
public virtual Query Rewrite(
	IndexReader reader
)
Visual Basic
Public Overridable Function Rewrite ( _
	reader As IndexReader _
) As Query
Visual C++
public:
virtual Query^ Rewrite(
	IndexReader^ reader
)

Parameters

reader
Type: Lucene.Net.Index..::..IndexReader

[Missing <param name="reader"/> documentation for "M:Lucene.Net.Search.Query.Rewrite(Lucene.Net.Index.IndexReader)"]

Return Value

[Missing <returns> documentation for "M:Lucene.Net.Search.Query.Rewrite(Lucene.Net.Index.IndexReader)"]

See Also