Re: Inserting a filter into an Analyzer

Viliam ġurina <[email protected]> Thu, 14 Aug 2025 16:08:22 +0200
Newsgroups gmane.comp.jakarta.lucene.user
Message-ID <CAO=iB8+B+MH-TNcgXD-UdU_f8YuqsCE6c5ZGAmkBN0V-xswm9A@mail.gmail.com>
--000000000000126779063c53cf85
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Thanks you very much, it worked!

D=C5=88a st 13. 8. 2025, 19:03 Michael Sokolov <[email protected]> nap=C3=
=ADsal(a):

> have a look at FreeTextSuggester.addShingles, which demonstrates an
> example of exactly what you are asking about - creates an
> AnalyzerWrapper that appends a TokenFilter to the TokenStream returned
> by the wrapped analyzer
>
> On Wed, Aug 13, 2025 at 12:09=E2=80=AFPM Viliam =C4=8Eurina <viliam.durin=
[email protected]>
> wrote:
> >
> > Hi all,
> >
> > I'm trying to figure out how to wrap an Analyzer instance and inject a
> > TokenFilter at the end of its filtering chain. I couldn't find a workin=
g
> > combination, including by using AnalyzerWrapper. The only way that work=
ed
> > is copying the original analyzer code and modifying it. However, in my
> case
> > the Analyzer is user-supplied and I don't have control over it.
> >
> > Could you hint me on a way how to do this?
> >
> > Thanks,
> > Viliam
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

--000000000000126779063c53cf85--