Hi Walter,

I’ve seen Erik Hatcher recommend using the StatelessScriptUpdateProcessor for 
this purpose, e.g. on slides 10-11 of 
https://www.slideshare.net/erikhatcher/solr-indexing-and-analysis-tricks .

More info at https://wiki.apache.org/solr/ScriptUpdateProcessor and 
https://lucene.apache.org/solr/7_3_0/solr-core/org/apache/solr/update/processor/StatelessScriptUpdateProcessorFactory.html
 

--
Steve
www.lucidworks.com

> On Apr 6, 2018, at 5:46 PM, Walter Underwood <wun...@wunderwood.org> wrote:
> 
> Is there an easy way to define an analyzer chain in schema.xml then run it in 
> an update request processor?
> 
> I want to run a chain ending in the minhash token filter, then take those 
> minhashes, convert them to hex, and put them in a string field. I’d like the 
> values stored.
> 
> It seems like this could all work in an update request processor. Grab the 
> text from one field, run it through the chain, format the output tokens and 
> add them to the field for hashes.
> 
> wunder
> Walter Underwood
> wun...@wunderwood.org
> http://observer.wunderwood.org/  (my blog)
> 

Reply via email to