Absolutely - I'm always in favor of coming up with additional work for
other people to do.

-- Jack Krupansky

On Wed, Jul 1, 2015 at 6:04 AM, Alessandro Benedetti <
benedetti.ale...@gmail.com> wrote:

> Honestly, if I had to write a custom UpdateRequestProcessor I would go for
> a SynonymUpdateProcessor, taking in input the same Synonim file style
> SynonimTokenFilter is using.
>
> Would be much easier to configure and use it!
>
> Cheers
>
> 2015-07-01 2:55 GMT+01:00 Jack Krupansky <jack.krupan...@gmail.com>:
>
> > You would have to have a separate instance of the update processor, each
> > with one of the words.
> >
> > Or, you could code a JavaScript script with the stateless script update
> > processor that has the long list or words and replacements as two arrays
> or
> > an array of objects, and then iterate through the input value and the
> > array.
> >
> >
> > -- Jack Krupansky
> >
> > On Tue, Jun 30, 2015 at 5:23 PM, hossmaa <andreea.hossm...@gmail.com>
> > wrote:
> >
> > > Hi all
> > >
> > > Thanks for the replies. So there's no getting away from doing it on my
> > own
> > > then...
> > >
> > > @Jack: I need to replace a whole list of shortened words... It would
> > make a
> > > crazy regex (which I incidentally wouldn't even know how to formulate).
> > >
> > > Cheers
> > > A.
> > >
> > >
> > >
> > >
> > > --
> > > View this message in context:
> > >
> >
> http://lucene.472066.n3.nabble.com/Correcting-text-at-index-time-tp4214636p4215056.html
> > > Sent from the Solr - User mailing list archive at Nabble.com.
> > >
> >
>
>
>
> --
> --------------------------
>
> Benedetti Alessandro
> Visiting card : http://about.me/alessandro_benedetti
>
> "Tyger, tyger burning bright
> In the forests of the night,
> What immortal hand or eye
> Could frame thy fearful symmetry?"
>
> William Blake - Songs of Experience -1794 England
>

Reply via email to