Re: Seemingly very difficult to wrap an Analyzer with CharFilter

2013-06-14 Thread Steven Schlansker
On Jun 12, 2013, at 5:26 PM, Michael Sokolov wrote: > On 6/12/2013 7:02 PM, Steven Schlansker wrote: >> On Jun 12, 2013, at 3:44 PM, Michael Sokolov >> wrote: >> >>> You may not have noticed that CharFilter extends Reader. The expected >>> pattern here is that you chain instances together

Re: Seemingly very difficult to wrap an Analyzer with CharFilter

2013-06-12 Thread Michael Sokolov
On 6/12/2013 7:02 PM, Steven Schlansker wrote: On Jun 12, 2013, at 3:44 PM, Michael Sokolov wrote: You may not have noticed that CharFilter extends Reader. The expected pattern here is that you chain instances together -- your CharFilter should act as *input* to the Analyzer, I think. Don

Re: Seemingly very difficult to wrap an Analyzer with CharFilter

2013-06-12 Thread Steven Schlansker
On Jun 12, 2013, at 3:44 PM, Michael Sokolov wrote: > You may not have noticed that CharFilter extends Reader. The expected > pattern here is that you chain instances together -- your CharFilter should > act as *input* to the Analyzer, I think. Don't think in terms of extending > these ana

Re: Seemingly very difficult to wrap an Analyzer with CharFilter

2013-06-12 Thread Michael Sokolov
You may not have noticed that CharFilter extends Reader. The expected pattern here is that you chain instances together -- your CharFilter should act as *input* to the Analyzer, I think. Don't think in terms of extending these analysis classes (except the base ones designed for it): compose t

Seemingly very difficult to wrap an Analyzer with CharFilter

2013-06-11 Thread Steven Schlansker
Hi everyone, I am trying to add a CharFilter to my Analyzer. I started with a StandardAnalyzer wrapped with an ASCIIFoldingFilter. Then I realized that it does not handle searches for names that include punctuation well, for example I want a PrefixQuery "pf" to match "P.F. Chang's" or "zaras"