Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-1093

A RequestHandler to run multiple queries in a batch

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • search
    • 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.

      Attachments

        1. SOLR-1093.patch
          10 kB
          Karthick Duraisamy Soundararaj
        2. SOLR-1093-1.1.patch
          16 kB
          Pedro Rosanes

        Issue Links

          Activity

            People

              Unassigned Unassigned
              noble.paul Noble Paul
              Votes:
              24 Vote for this issue
              Watchers:
              32 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: