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

Hierarchical Handler Config

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Reopened
    • Minor
    • Resolution: Unresolved
    • 1.3
    • None
    • update
    • None

    Description

      From J.J. Larrea on SOLR-104

      2. What would make this even more powerful would be the ability to "subclass" (meaning refine and/or extend) request handler configs: If the requestHandler element allowed an attribute extends="<another-requesthandler-name>" and chained the SolrParams, then one could do something like:

      <requestHandler name="search/products/all" class="solr.DisMaxRequestHandler" >
      <lst name="defaults">
      <float name="tie">0.01</float>
      <str name="qf">
      text^0.5 features^1.0 name^1.2 sku^1.5 id^10.0 manu^1.1 cat^1.4
      </str>
      ... much more, per the "dismax" example in the sample solrconfig.xml ...
      </requestHandler>

      ... and replacing the "partitioned" example ...
      <requestHandler name="search/products/instock" extends="search/products/all" >
      <lst name="appends">
      <str name="fq">inStock:true</str>
      </lst>
      </requestHandler>

      Attachments

        1. SOLR-112.patch
          10 kB
          Ryan McKinley

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ryantxu Ryan McKinley
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: