Appearance
<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
Clone
https://bitbucket.org/devteamadvisable/solrlibrary/src/master/From
solrlibrarycopytarget/adveshop-processor-<version>.jarand paste it into/solr-root-dir/distInside your
solrconfig.xmlin<config>and under<lib dir="${solr.install.dir:../../../..}/contrib/extraction/lib" regex=".*\.jar" />add this line:xml<lib dir="${solr.install.dir:../../../..}/dist/" regex="adveshop-processor-.*\.jar" />Inside your
solrconfig.xmlin<config>and under<updateProcessor class="solr.UUIDUpdateProcessorFactory" name="uuid"/>add this line:xml<updateProcessor class="gr.advisable.solr.processor.Adveshop4ProcessorFactory" name="adveshop4"/>You will then need to edit the default
<updateRequestProcessorChain>and addadveshop4in theprocessorparameter. You can copy and replace your<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>That's it. Now every time you call
/updateand add new documents, theadveshop-processorwill kick in and transform the fieldsproduct_nameandproduct_descriptionof each solr document!