You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Fellipe Castro (JIRA)" <ji...@apache.org> on 2016/06/01 18:59:59 UTC

[jira] [Comment Edited] (SOLR-1093) A RequestHandler to run multiple queries in a batch

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

Fellipe Castro edited comment on SOLR-1093 at 6/1/16 6:59 PM:
--------------------------------------------------------------

I tried to apply this patch to the most recent version of solr, found at

https://github.com/apache/lucene-solr

by using the following command

wget https://issues.apache.org/jira/secure/attachment/12541215/SOLR-1093.patch -O - | patch -p0 --dry-run

and I'm getting this failure output:

File solr/CHANGES.txt is read-only; trying to patch anyway
checking file solr/CHANGES.txt
Hunk #1 succeeded at 8110 (offset 7962 lines).
checking file solr/core/src/java/org/apache/solr/handler/component/MultiSearchHandler.java
File solr/core/src/java/org/apache/solr/handler/component/SearchHandler.java is read-only; trying to patch anyway
checking file solr/core/src/java/org/apache/solr/handler/component/SearchHandler.java
Hunk #1 FAILED at 158.
1 out of 1 hunk FAILED

Any ideas on how to solve this?

Is that the correct way to patch on solr?


was (Author: fellipecastro):
I tried to apply this patch to the most recent version of solr, found at

https://github.com/apache/lucene-solr

by using the following command

wget https://issues.apache.org/jira/secure/attachment/12541215/SOLR-1093.patch -O - | patch -p0 --dry-run

and Im getting this failure output:

File solr/CHANGES.txt is read-only; trying to patch anyway
checking file solr/CHANGES.txt
Hunk #1 succeeded at 8110 (offset 7962 lines).
checking file solr/core/src/java/org/apache/solr/handler/component/MultiSearchHandler.java
File solr/core/src/java/org/apache/solr/handler/component/SearchHandler.java is read-only; trying to patch anyway
checking file solr/core/src/java/org/apache/solr/handler/component/SearchHandler.java
Hunk #1 FAILED at 158.
1 out of 1 hunk FAILED

Any ideas on how to solve this?

Is that the correct way to patch on solr?

> 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.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