Solr
  1. Solr
  2. SOLR-269

UpdateRequestProcessorFactory - process requests before submitting them

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.3
    • Component/s: None
    • Labels:
      None

      Description

      A simple UpdateRequestProcessor was added to a bloated SOLR-133 commit.

      An UpdateRequestProcessor lets clients plug in logic after a document has been parsed and before it has been 'updated' with the index. This is a good place to add custom logic for:

      • transforming the document fields
      • fine grained authorization (can user X updated document Y?)
      • allow update, but not delete (by query?)

      <requestHandler name="/update" class="solr.StaxUpdateRequestHandler" >
      <str name="update.processor.class">org.apache.solr.handler.UpdateRequestProcessor</str>
      <lst name="update.processor.args">
      ... (optionally pass in arguments to the factory init method) ...
      </lst>
      </requestHandler>

      http://www.nabble.com/Re%3A-svn-commit%3A-r547495---in--lucene-solr-trunk%3A-example-solr-conf-solrconfig.xml-src-java-org-apache-solr-handler-StaxUpdateRequestHandler.java-src-java-org-apache-solr-handler-UpdateRequestProcessor.jav-tf3950072.html#a11206583

      1. UpdateProcessor.patch
        18 kB
        Yonik Seeley
      2. SOLR-269-UpdateRequestProcessorFactory.patch
        6 kB
        Ryan McKinley
      3. SOLR-269-UpdateRequestProcessorFactory.patch
        45 kB
        Ryan McKinley
      4. SOLR-269-UpdateRequestProcessorFactory.patch
        54 kB
        Ryan McKinley
      5. SOLR-269-simple.patch
        7 kB
        Noble Paul

        Issue Links

          Activity

          Uwe Schindler made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Ryan McKinley made changes -
          Link This issue is related to SOLR-660 [ SOLR-660 ]
          Noble Paul made changes -
          Attachment SOLR-269-simple.patch [ 12386858 ]
          Ryan McKinley made changes -
          Link This issue relates to SOLR-139 [ SOLR-139 ]
          Ryan McKinley made changes -
          Ryan McKinley made changes -
          Yonik Seeley made changes -
          Attachment UpdateProcessor.patch [ 12361231 ]
          Ryan McKinley made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Ryan McKinley made changes -
          Field Original Value New Value
          Attachment SOLR-269-UpdateRequestProcessorFactory.patch [ 12360309 ]
          Ryan McKinley created issue -

            People

            • Assignee:
              Ryan McKinley
              Reporter:
              Ryan McKinley
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development