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

standardize the updateprocessorchain syntax

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 1.3
    • 1.4
    • None
    • None

    Description

      updateprocessorChain follows a non-standard syntax in solr . Usually, all the components are initialized as top level components and they are assembled and used using a NamedList syntax .for example search components.

      I propose to change it as follows

       <updateRequestProcessorChain name="custom" class="solr.UpdateRequestProcessorChain"> 
        <arr name="chain">
            <str>custom</str>
            <str>runUpdate</str>
            <str>log</str>
        </arr>
      </updateRequestProcessorChain>
      <updateProcessor name="custom" class="solr.CustomUpdateRequestProcessorFactory" >
         <lst name="name">
           <str name="n1">x1</str>
           <str name="n2">x2</str>
         </lst>
      </updateProcessor>                                    
      <updateProcessor name="runUpdate" class="solr.RunUpdateProcessorFactory" />                    
      <updateProcessor name="log" class="solr.LogUpdateProcessorFactory" />   
      

      The wiki documentation says this was supposed to be reviewed. If possible we should clean it up in 1.4 itself. We can support the old syntax too

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              noble.paul Noble Paul
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: