Expert: called when re-writing queries under MultiSearcher. Create a single query suitable for use by all subsearchers (in 1-1 correspondence with queries). This is an optimization of the OR of all queries. We handle the common optimization cases of equal queries and overlapping clauses of boolean OR queries (as generated by MultiTermQuery.rewrite()). Be careful overriding this method as queries[0] determines which method will be called and is not necessarily of the same type as the other queries.

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

Syntax

C#
public virtual Query Combine(
	Query[] queries
)
Visual Basic
Public Overridable Function Combine ( _
	queries As Query() _
) As Query
Visual C++
public:
virtual Query^ Combine(
	array<Query^>^ queries
)

Parameters

queries
Type: array<Lucene.Net.Search..::..Query>[]()[][]

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

Return Value

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

See Also