Details
-
New Feature
-
Status: Resolved
-
Major
-
Resolution: Won't Fix
-
None
-
None
-
None
Description
It is a common requirement that a single page requires to fire multiple queries .In cases where these queries are independent of each other. If there is a handler which can take in multiple queries , run them in paralll and send the response as one big chunk it would be useful
Let us say the handler is MultiRequestHandler
<requestHandler name="/multi" class="solr.MultiRequestHandler"/>
Query Syntax
The request must specify the no:of queries as count=n
Each request parameter must be prefixed with a number which denotes the query index.optionally ,it may can also specify the handler name.
example
/multi?count=2&1.handler=/select&1.q=a:b&2.handler=/select&2.q=a:c
default handler can be '/select' so the equivalent can be
/multi?count=2&1.q=a:b&2.q=a:c
The response
The response will be a List<NamedList> where each NamedList will be a response to a query.