Method Combine
Combine(Query[])
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.
Declaration
public virtual Query Combine(Query[] queries)
Parameters
Type | Name | Description |
---|---|---|
Query[] | queries |
Returns
Type | Description |
---|---|
Query |