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

Restrict non-search handlers in distributed search

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 4.3
    • Fix Version/s: None
    • Component/s: SolrCloud
    • Labels:
      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

          Activity

            People

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

              Dates

              • Created:
                Updated: