Hi Yonik, thanks for the advice. The factory works like a charm!!
Kind regards, Nick On 6/22/06, Yonik Seeley <[EMAIL PROTECTED]> wrote:
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