lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Muir <>
Subject Re: Using a char filter in solr createComponents
Date Wed, 29 Aug 2012 14:35:19 GMT
sure. you need to wrap the reader in Analyzer.initReader() to do this:

   * Override this if you want to add a CharFilter chain.
  protected Reader initReader(String fieldName, Reader reader) {
    return reader;

by default it returns the original Reader unchanged.

There are examples in the analysis package javadocs
but we don't yet have one that uses a CharFilter. I'll see if i can
add one.

On Wed, Aug 29, 2012 at 10:29 AM, Benson Margulies <> wrote:
> I'm close to the bottom of my list here.
> I've got an Analyzer that, in 3.1, set up a CharFilter in the tokenStream
> method. So now I have to migrate that to createComponents. Can someone give
> me a shove in the right direction?


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message