mirror of https://github.com/apache/lucene.git
LUCENE-3720: add warning+experimental and disable test
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1236341 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
3281e5b3a3
commit
f640687877
|
@ -32,7 +32,14 @@ import org.apache.lucene.analysis.tokenattributes.PositionIncrementAttribute;
|
|||
|
||||
/**
|
||||
* TokenFilter for Beider-Morse phonetic encoding.
|
||||
* <p>
|
||||
* <b><font color="red">
|
||||
* WARNING: some inputs can cause extremely high RAM usage!
|
||||
* https://issues.apache.org/jira/browse/CODEC-132
|
||||
* </font></b>
|
||||
* </p>
|
||||
* @see BeiderMorseEncoder
|
||||
* @lucene.experimental
|
||||
*/
|
||||
public final class BeiderMorseFilter extends TokenFilter {
|
||||
private final PhoneticEngine engine;
|
||||
|
|
|
@ -28,6 +28,7 @@ import org.apache.lucene.analysis.Analyzer;
|
|||
import org.apache.lucene.analysis.BaseTokenStreamTestCase;
|
||||
import org.apache.lucene.analysis.MockTokenizer;
|
||||
import org.apache.lucene.analysis.Tokenizer;
|
||||
import org.junit.Ignore;
|
||||
|
||||
/** Tests {@link BeiderMorseFilter} */
|
||||
public class TestBeiderMorseFilter extends BaseTokenStreamTestCase {
|
||||
|
@ -86,6 +87,7 @@ public class TestBeiderMorseFilter extends BaseTokenStreamTestCase {
|
|||
new int[] { 1 });
|
||||
}
|
||||
|
||||
@Ignore("broken: causes OOM on some strings (https://issues.apache.org/jira/browse/CODEC-132)")
|
||||
public void testRandom() throws Exception {
|
||||
checkRandomData(random, analyzer, 1000 * RANDOM_MULTIPLIER);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue