You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Jack Krupansky <ja...@gmail.com> on 2015/07/01 03:55:16 UTC
Re: Correcting text at index time
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 <an...@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.
>
Re: Correcting text at index time
Posted by Jack Krupansky <ja...@gmail.com>.
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.alex85@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 <ja...@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 <an...@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
>
Re: Correcting text at index time
Posted by Alessandro Benedetti <be...@gmail.com>.
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 <ja...@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 <an...@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