MockAnalyzer is really just MocKTokenizer+MockTokenFilter+.... Instead you just define your own analyzer chain using MockTokenizer. This is the way all lucene's own analysis tests work: e.g. http://svn.apache.org/repos/asf/lucene/dev/trunk/lucene/analysis/common/src/test/org/apache/lucene/analysis/en/TestEnglishMinimalStemFilter.java
On Thu, Feb 14, 2013 at 7:40 AM, Dmitry Kan <solrexp...@gmail.com> wrote: > Hello, > > Asked a question on SO: > > http://stackoverflow.com/questions/14873207/mockanalyzer-in-lucene-attach-stemmer-or-any-custom-filter > > Is there a way to configure a stemmer or a custom filter with the > MockAnalyzer class? > Version: LUCENE_34 > > Dmitry