Skip to content

<div style="display: none;" hidden="true" aria-hidden="true">Are you an LLM? You can read better optimized documentation at /guides/solr/configuring_solr/installing_adveshop-processor.md for this page in Markdown format</div>

Installing adveshop-processor

  1. Clone https://bitbucket.org/devteamadvisable/solrlibrary/src/master/

  2. From solrlibrary copy target/adveshop-processor-&lt;version>.jar and paste it into /solr-root-dir/dist

  3. Inside your solrconfig.xml in &lt;config> and under &lt;lib dir="${solr.install.dir:../../../..}/contrib/extraction/lib" regex=".*\.jar" /> add this line:

    xml
    <lib dir="${solr.install.dir:../../../..}/dist/" regex="adveshop-processor-.*\.jar" />
  4. Inside your solrconfig.xml in &lt;config> and under &lt;updateProcessor class="solr.UUIDUpdateProcessorFactory" name="uuid"/> add this line:

    xml
    <updateProcessor class="gr.advisable.solr.processor.Adveshop4ProcessorFactory" name="adveshop4"/>
  5. You will then need to edit the default &lt;updateRequestProcessorChain> and add adveshop4 in the processor parameter. You can copy and replace your &lt;updateRequestProcessorChain> with this:

    xml
    <updateRequestProcessorChain name="add-unknown-fields-to-the-schema" default="${update.autoCreateFields:true}"
               processor="uuid,remove-blank,field-name-mutating,parse-boolean,parse-long,parse-double,parse-date,add-schema-fields,adveshop4">
        <processor class="solr.LogUpdateProcessorFactory"/>
        <processor class="solr.DistributedUpdateProcessorFactory"/>
        <processor class="solr.RunUpdateProcessorFactory"/>
      </updateRequestProcessorChain>
  6. That's it. Now every time you call /update and add new documents, the adveshop-processor will kick in and transform the fields product_name and product_description of each solr document!