lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pedro Rosanes (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (SOLR-1093) A RequestHandler to run multiple queries in a batch
Date Mon, 13 Jun 2016 17:33:21 GMT

    [ https://issues.apache.org/jira/browse/SOLR-1093?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15327797#comment-15327797
] 

Pedro Rosanes edited comment on SOLR-1093 at 6/13/16 5:32 PM:
--------------------------------------------------------------

If multi queries were sent, the resulting json would be invalid, since it'd have two or more
"response" keys.
In this [patch|^SOLR-1093-1.1.patch], each response has an identifier of the corresponding
query.
Eg.: { "1.response" : ..., "2.response" : ... }


was (Author: prosanes):
If multi queries were sent, the resulting json would be invalid, since it'd have two or more
"response" keys.
In this patch, each response has an identifier of the corresponding query.
Eg.: { "1.response" : ..., "2.response" : ... }

> A RequestHandler to run multiple queries in a batch
> ---------------------------------------------------
>
>                 Key: SOLR-1093
>                 URL: https://issues.apache.org/jira/browse/SOLR-1093
>             Project: Solr
>          Issue Type: New Feature
>          Components: search
>            Reporter: Noble Paul
>         Attachments: SOLR-1093-1.1.patch, SOLR-1093.patch
>
>
> 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
> {code}
> <requestHandler name="/multi" class="solr.MultiRequestHandler"/>
> {code}
> h2.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
> {code}
> /multi?count=2&1.handler=/select&1.q=a:b&2.handler=/select&2.q=a:c
> {code}
> default handler can be '/select' so the equivalent can be
> {code} 
> /multi?count=2&1.q=a:b&2.q=a:c
> {code}
> h2.The response
> The response will be a List<NamedList> where each NamedList will be a response
to a query. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message