Analyzer classes are optional; an analyzer is just a factory for a set of token stream components. you can usually do just fine with an anonymous class. Or in your case, the only thing different for each language will be the stop words, so you can have one analyzer class with a language parameter. On Jun 9, 2014 7:02 AM, "Jamie" <ja...@mailarchiva.com> wrote:
> I am not using Solr. I am using the default analyzers... > > On 2014/06/09, 12:59 PM, Benson Margulies wrote: > >> Are you using Solr? If so you are on the wrong mailing list. If not, why >> do >> you need a non- >> -anonymous analyzer at all. >> On Jun 9, 2014 6:55 AM, "Jamie" <ja...@mailarchiva.com> wrote: >> >> To me, it seems strange that these default analyzers, don't provide >>> constructors that enable one to override stemming, etc? >>> >>> On 2014/06/09, 12:39 PM, Trejkaz wrote: >>> >>> On Mon, Jun 9, 2014 at 7:57 PM, Jamie <ja...@mailarchiva.com> wrote: >>>> >>>> Greetings >>>>> >>>>> Our app currently uses language specific analysers (e.g. >>>>> EnglishAnalyzer, >>>>> GermanAnalyzer, etc.). We need an option to disable stemming. What's >>>>> the >>>>> recommended way to do this? These analyzers do not include an option to >>>>> disable stemming, only a parameter to specify a list words for which >>>>> stemming should not apply. >>>>> Furthermore, my understanding is that the StandardAnalyzer is tied to >>>>> English specifically. >>>>> >>>>> >>>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org >>> For additional commands, e-mail: java-user-h...@lucene.apache.org >>> >>> >>> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org > For additional commands, e-mail: java-user-h...@lucene.apache.org > >