"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "analysis/common/src/test/org/apache/lucene/analysis/core/TestRandomChains.java" between
lucene-7.6.0-src.tgz and lucene-7.7.0-src.tgz

About: Lucene is a Java full-text search engine (not a complete application, but rather a code library and API; java source code).

TestRandomChains.java  (lucene-7.6.0-src.tgz):TestRandomChains.java  (lucene-7.7.0-src.tgz)
skipping to change at line 90 skipping to change at line 90
import org.apache.lucene.analysis.miscellaneous.LimitTokenOffsetFilter; import org.apache.lucene.analysis.miscellaneous.LimitTokenOffsetFilter;
import org.apache.lucene.analysis.miscellaneous.LimitTokenPositionFilter; import org.apache.lucene.analysis.miscellaneous.LimitTokenPositionFilter;
import org.apache.lucene.analysis.miscellaneous.StemmerOverrideFilter; import org.apache.lucene.analysis.miscellaneous.StemmerOverrideFilter;
import org.apache.lucene.analysis.miscellaneous.StemmerOverrideFilter.StemmerOve rrideMap; import org.apache.lucene.analysis.miscellaneous.StemmerOverrideFilter.StemmerOve rrideMap;
import org.apache.lucene.analysis.miscellaneous.WordDelimiterFilter; import org.apache.lucene.analysis.miscellaneous.WordDelimiterFilter;
import org.apache.lucene.analysis.miscellaneous.WordDelimiterGraphFilter; import org.apache.lucene.analysis.miscellaneous.WordDelimiterGraphFilter;
import org.apache.lucene.analysis.path.PathHierarchyTokenizer; import org.apache.lucene.analysis.path.PathHierarchyTokenizer;
import org.apache.lucene.analysis.path.ReversePathHierarchyTokenizer; import org.apache.lucene.analysis.path.ReversePathHierarchyTokenizer;
import org.apache.lucene.analysis.payloads.IdentityEncoder; import org.apache.lucene.analysis.payloads.IdentityEncoder;
import org.apache.lucene.analysis.payloads.PayloadEncoder; import org.apache.lucene.analysis.payloads.PayloadEncoder;
import org.apache.lucene.analysis.shingle.FixedShingleFilter;
import org.apache.lucene.analysis.shingle.ShingleFilter; import org.apache.lucene.analysis.shingle.ShingleFilter;
import org.apache.lucene.analysis.snowball.TestSnowball; import org.apache.lucene.analysis.snowball.TestSnowball;
import org.apache.lucene.analysis.standard.StandardTokenizer; import org.apache.lucene.analysis.standard.StandardTokenizer;
import org.apache.lucene.analysis.synonym.SynonymMap; import org.apache.lucene.analysis.synonym.SynonymMap;
import org.apache.lucene.analysis.wikipedia.WikipediaTokenizer; import org.apache.lucene.analysis.wikipedia.WikipediaTokenizer;
import org.apache.lucene.store.RAMDirectory; import org.apache.lucene.store.RAMDirectory;
import org.apache.lucene.util.AttributeFactory; import org.apache.lucene.util.AttributeFactory;
import org.apache.lucene.util.AttributeSource; import org.apache.lucene.util.AttributeSource;
import org.apache.lucene.util.CharsRef; import org.apache.lucene.util.CharsRef;
import org.apache.lucene.util.Rethrow; import org.apache.lucene.util.Rethrow;
skipping to change at line 131 skipping to change at line 132
private static final Set<Class<?>> avoidConditionals = new HashSet<>(); private static final Set<Class<?>> avoidConditionals = new HashSet<>();
static { static {
// These filters needs to consume the whole tokenstream, so conditionals don 't make sense here // These filters needs to consume the whole tokenstream, so conditionals don 't make sense here
avoidConditionals.add(FingerprintFilter.class); avoidConditionals.add(FingerprintFilter.class);
avoidConditionals.add(MinHashFilter.class); avoidConditionals.add(MinHashFilter.class);
avoidConditionals.add(ConcatenateGraphFilter.class); avoidConditionals.add(ConcatenateGraphFilter.class);
// ShingleFilter doesn't handle input graphs correctly, so wrapping it in a condition can // ShingleFilter doesn't handle input graphs correctly, so wrapping it in a condition can
// expose inconsistent offsets // expose inconsistent offsets
// https://issues.apache.org/jira/browse/LUCENE-4170 // https://issues.apache.org/jira/browse/LUCENE-4170
avoidConditionals.add(ShingleFilter.class); avoidConditionals.add(ShingleFilter.class);
avoidConditionals.add(FixedShingleFilter.class);
// FlattenGraphFilter changes the output graph entirely, so wrapping it in a condition // FlattenGraphFilter changes the output graph entirely, so wrapping it in a condition
// can break position lengths // can break position lengths
avoidConditionals.add(FlattenGraphFilter.class); avoidConditionals.add(FlattenGraphFilter.class);
// LimitToken*Filters don't set end offsets correctly // LimitToken*Filters don't set end offsets correctly
avoidConditionals.add(LimitTokenOffsetFilter.class); avoidConditionals.add(LimitTokenOffsetFilter.class);
avoidConditionals.add(LimitTokenCountFilter.class); avoidConditionals.add(LimitTokenCountFilter.class);
avoidConditionals.add(LimitTokenPositionFilter.class); avoidConditionals.add(LimitTokenPositionFilter.class);
} }
private static final Map<Constructor<?>,Predicate<Object[]>> brokenConstructor s = new HashMap<>(); private static final Map<Constructor<?>,Predicate<Object[]>> brokenConstructor s = new HashMap<>();
 End of changes. 2 change blocks. 
0 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)