[
https://issues.apache.org/jira/browse/SOLR-11186?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Cassandra Targett updated SOLR-11186:
-------------------------------------
Issue Type: New Feature (was: Task)
> MultiQuery Search component
> ---------------------------
>
> Key: SOLR-11186
> URL: https://issues.apache.org/jira/browse/SOLR-11186
> Project: Solr
> Issue Type: New Feature
> Security Level: Public(Default Security Level. Issues are Public)
> Reporter: George Leotescu
> Priority: Minor
>
> This patch is for contributing a request handler and search component that
> will allow us to perform multiple queries in one unique request. The issue
> has been tackled in the past by SOLR-1093 but never integrated into Solr.
> h2. Setup
> In order to use the request handler the user will have to specify in the
> {{solrconfig.xml}} something like:
> {code}
> <requestHandler name="/multi" class="solr.MultiRequestHandler"/>
> {code}
> h2. Query Syntax
> The request handler will support the following syntax:
> {code:xml}
> /select?mq=hello&mq=world&mq=solr&rows=2&fq=...
> {code}
> the response will be:
> {code:xml}
> {
> "responseHeader": {
> "status": 0,
> "QTime": 58
> },
> "response": [
> {
> "numFound": 10,
> "start": 0,
> "mq": "hello",
> "docs": [
> {
> ...
> },
> {
> "numFound": 57,
> "start": 0,
> "mq": "world",
> "docs": [
> ...
> ]
> {
> "numFound": 34,
> "start": 0,
> "mq": "solr",
> "docs": [
> ...
> ],
> }
> {code}
> h2. Performance
> The query will be optimized for the distributed setting, so that the network
> requests between the federator and the shards are the same used to perform a
> normal query.
> We also plan to support group queries (extending the {{QueryComponent}} in
> order to avoid extra network communications)
> h2. Misc
> The usual parameters ({{rows}}, {{start}}, {{fq}}, {{sort}}) will be in
> common and applied to all the queries.
> We would like to release the request handler in a separate contrib package.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]