From 0a39c6131bc86b35f7fef0c4e8b7bd6cbd659829 Mon Sep 17 00:00:00 2001 From: Erik Hatcher Date: Sun, 25 Jan 2004 14:18:12 +0000 Subject: [PATCH] add no-arg ctor for RussianAnalyzer - makes it easier for tools to use this analyzer git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150174 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/lucene/analysis/ru/RussianAnalyzer.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/java/org/apache/lucene/analysis/ru/RussianAnalyzer.java b/src/java/org/apache/lucene/analysis/ru/RussianAnalyzer.java index a20e3a67c08..9fa249a4bce 100644 --- a/src/java/org/apache/lucene/analysis/ru/RussianAnalyzer.java +++ b/src/java/org/apache/lucene/analysis/ru/RussianAnalyzer.java @@ -224,6 +224,13 @@ public final class RussianAnalyzer extends Analyzer */ private char[] charset; + + public RussianAnalyzer() { + charset = RussianCharsets.UnicodeRussian; + stoptable = StopFilter.makeStopTable( + makeStopWords(RussianCharsets.UnicodeRussian)); + } + /** * Builds an analyzer. */