Apache Lucene open-source search software
LUCENE-3969: demote the n-grams again (with explanation)
Robert Muirc58dfd5516e4
diff --git a/modules/analysis/common/src/test/org/apache/lucene/analysis/core/TestRandomChains.java b/modules/analysis/common/src/test/org/apache/lucene/analysis/core/TestRandomChains.javaindex 00190dd8ea3..2dac8f3b8ba 100644--- a/modules/analysis/common/src/test/org/apache/lucene/analysis/core/TestRandomChains.java+++ b/modules/analysis/common/src/test/org/apache/lucene/analysis/core/TestRandomChains.java@@ -113,7 +113,22 @@ public class TestRandomChains extends BaseTokenStreamTestCase {LimitTokenCountFilter.class,// Not broken: we forcefully add this, so we shouldn't// also randomly pick it:- ValidatingTokenFilter.class+ ValidatingTokenFilter.class,+ // NOTE: these by themselves won't cause any 'basic assertions' to fail.+ // but see https://issues.apache.org/jira/browse/LUCENE-3920, if any+ // tokenfilter that combines words (e.g. shingles) comes after them,+ // this will create bogus offsets because their 'offsets go backwards',+ // causing shingle or whatever to make a single token with a+ // startOffset thats > its endOffset+ // (see LUCENE-3738 for a list of other offenders here)+ // broken!+ NGramTokenizer.class,+ // broken!+ NGramTokenFilter.class,+ // broken!+ EdgeNGramTokenizer.class,+ // broken!+ EdgeNGramTokenFilter.class);}@@ -130,14 +145,6 @@ public class TestRandomChains extends BaseTokenStreamTestCase {DictionaryCompoundWordTokenFilter.class,// nocommit: corrumpts graphs (offset consistency check):PositionFilter.class,- // broken!- NGramTokenizer.class,- // broken!- NGramTokenFilter.class,- // broken!- EdgeNGramTokenizer.class,- // broken!- EdgeNGramTokenFilter.class,// nocommit it seems to mess up offsets!?WikipediaTokenizer.class);