On 6/22/06, Nick Snels <[EMAIL PROTECTED]> wrote:
But why doesn't the following work

    <fieldtype name="nametext" class="solr.TextField">
      <analyzer>
        <tokenizer class="solr.StandardTokenizerFactory"/>
        <filter class="solr.StandardFilterFactory"/>
        <filter class="solr.LowerCaseFilterFactory"/>
        <filter class="solr.StopFilterFactory" words="stopwords.txt"/>
        <analyzer class="org.apache.lucene.analysis.nl.DutchAnalyzer"/>
      </analyzer>
    </fieldtype>

An analyzer *is* a tokenizer followed by multiple token filters, so
you can't really put an analyzer in another analyzer.

Probably the right way to handle this is to make a Factory for the
stemmer filter only.
One was is by enhancing the existing SnowballPorterFilterFactory in
Solr to make the language configurable, and to allow it to take an
exclusion or protected words list.

-Yonik

Reply via email to