The analysis chains are exactly that, chains. They really don't have a way to skip things in a context-sensitive way.
So if you stem first, the stemmed stuff gets reversed and vice-versa. Are you sure that stemming then reversing is a bad solution? What's the use case that this is bad for? Otherwise, I think you're into custom filter land, so it's a question whether the use case is worth the effort I think. Best Erick On Fri, Feb 3, 2012 at 6:50 PM, Jamie Johnson <jej2...@gmail.com> wrote: > I'd like to use both the ReversedWildcardFilterFactory and > PorterStemFilterFactory on a text field that I have, I'd like to avoid > stemming the reversed fields and would also like to avoid reversing > the stemmed fields. My original thought was to have the > ReversedWildcardFilterFactory higher in the chain, but what would this > do with the stemmer? Would it attempt o stem the reversed tokens or > are they ignored? What is the best way to achieve the result I am > looking for in a single field? > > Again goal is to have text come in have it be reversed and stemmed but > I don't want the stemmed reversed and I don't want the reversed > stemmed, is this possible?