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

Restrict non-search handlers in distributed search

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 4.3
    • None
    • SolrCloud
    • None

    Description

      This patch uncomments and fixes some code in SolrCore that was checking that only SearchHandlers were accessible in distributed search.

      It appears to have been commented out because it was breaking the /spell handler in the examples. I believe I've figured out the cause of the problem and have written (mostly uncommented, tbh) some unit tests to demonstrate that the /spell handler will work fine now, while still disallowing non-SearchHandlers (such as /update).

      Here's a short blog post I wrote on the subject: http://wp.me/p1t8Ca-Hm

      Attached are separate patches for the fix and the unit tests, so you can verify that the tests fail before the fix and succeed afterward.

      Attachments

        1. SOLR-4821-unit-tests.patch
          1 kB
          Nolan Lawson
        2. SOLR-4821-disallow-non-search-handlers.patch
          2 kB
          Nolan Lawson

        Activity

          People

            Unassigned Unassigned
            nolanlawson Nolan Lawson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: