LUCENE-5269: make test use less RAM

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1531193 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Muir 2013-10-11 04:38:57 +00:00
parent d2d435ecf5
commit 69a05f19c4
1 changed files with 2 additions and 2 deletions

View File

@ -245,13 +245,13 @@ public class TestBugInSomething extends BaseTokenStreamTestCase {
protected TokenStreamComponents createComponents(String fieldName, Reader reader) { protected TokenStreamComponents createComponents(String fieldName, Reader reader) {
Tokenizer tokenizer = new EdgeNGramTokenizer(TEST_VERSION_CURRENT, reader, 2, 94); Tokenizer tokenizer = new EdgeNGramTokenizer(TEST_VERSION_CURRENT, reader, 2, 94);
//TokenStream stream = new SopTokenFilter(tokenizer); //TokenStream stream = new SopTokenFilter(tokenizer);
TokenStream stream = new ShingleFilter(tokenizer, 54); TokenStream stream = new ShingleFilter(tokenizer, 5);
//stream = new SopTokenFilter(stream); //stream = new SopTokenFilter(stream);
stream = new NGramTokenFilter(TEST_VERSION_CURRENT, stream, 55, 83); stream = new NGramTokenFilter(TEST_VERSION_CURRENT, stream, 55, 83);
//stream = new SopTokenFilter(stream); //stream = new SopTokenFilter(stream);
return new TokenStreamComponents(tokenizer, stream); return new TokenStreamComponents(tokenizer, stream);
} }
}; };
checkRandomData(random(), analyzer, 10); checkRandomData(random(), analyzer, 2000);
} }
} }