LUCENE-5468: fix precommit+test

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene5468@1572724 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Muir 2014-02-27 20:39:35 +00:00
parent 5d7f9dfd35
commit 66ccdead47
2 changed files with 8 additions and 2 deletions

View File

@ -82,6 +82,12 @@ API Changes
* LUCENE-5454: Add RandomAccessOrds, an optional extension of SortedSetDocValues
that supports random access to the ordinals in a document. (Robert Muir)
Optimizations
* LUCENE-5468: HunspellStemFilter uses 10 to 100x less RAM. It also loads
all known openoffice dictionaries without error, and supports an additional
longestOnly option for a less aggressive approach. (Robert Muir)
Bug fixes
* LUCENE-5450: Fix getField() NPE issues with SpanOr/SpanNear when they have an

View File

@ -30,7 +30,7 @@ public class TestHunspellStemFilterFactory extends BaseTokenStreamFactoryTestCas
public void testStemming() throws Exception {
Reader reader = new StringReader("abc");
TokenStream stream = whitespaceMockTokenizer(reader);
stream = tokenFilterFactory("Hunspell2Stem",
stream = tokenFilterFactory("HunspellStem",
"dictionary", "simple.dic",
"affix", "simple.aff").create(stream);
assertTokenStreamContents(stream, new String[] { "ab" });
@ -39,7 +39,7 @@ public class TestHunspellStemFilterFactory extends BaseTokenStreamFactoryTestCas
/** Test that bogus arguments result in exception */
public void testBogusArguments() throws Exception {
try {
tokenFilterFactory("Hunspell2Stem",
tokenFilterFactory("HunspellStem",
"dictionary", "simple.dic",
"bogusArg", "bogusValue");
fail();