Optimize our representation and our subqueries representations

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

Syntax

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

Parameters

reader
Type: Lucene.Net.Index..::..IndexReader
the IndexReader we query

Return Value

an optimized copy of us (which may not be a copy if there is nothing to optimize)

See Also