Inserting a filter into an Analyzer

Viliam ġurina <[email protected]> Wed, 13 Aug 2025 18:08:55 +0200
Newsgroups gmane.comp.jakarta.lucene.user
Message-ID <CAO=iB8+7MxLQO1SKVA7_sxbKLmDf45cT5kW7bX2VeBeC-4Ce1A@mail.gmail.com>
--000000000000cde484063c4161c4
Content-Type: text/plain; charset="UTF-8"

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 working
combination, including by using AnalyzerWrapper. The only way that worked
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

--000000000000cde484063c4161c4--