lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From romseyg...@apache.org
Subject [1/2] lucene-solr:branch_7x: LUCENE-8273: Don't wrap ShingleFilter in conditions in testRandomChains
Date Thu, 07 Jun 2018 12:03:19 GMT
Repository: lucene-solr
Updated Branches:
  refs/heads/branch_7x b283f7662 -> dfb679a93
  refs/heads/master a82c9cfcf -> a4fa16896


LUCENE-8273: Don't wrap ShingleFilter in conditions in testRandomChains


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/dfb679a9
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/dfb679a9
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/dfb679a9

Branch: refs/heads/branch_7x
Commit: dfb679a93cc9aae2620e7ce110c9515181bd17c6
Parents: b283f76
Author: Alan Woodward <romseygeek@apache.org>
Authored: Thu Jun 7 12:53:43 2018 +0100
Committer: Alan Woodward <romseygeek@apache.org>
Committed: Thu Jun 7 12:53:58 2018 +0100

----------------------------------------------------------------------
 .../test/org/apache/lucene/analysis/core/TestRandomChains.java  | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/dfb679a9/lucene/analysis/common/src/test/org/apache/lucene/analysis/core/TestRandomChains.java
----------------------------------------------------------------------
diff --git a/lucene/analysis/common/src/test/org/apache/lucene/analysis/core/TestRandomChains.java
b/lucene/analysis/common/src/test/org/apache/lucene/analysis/core/TestRandomChains.java
index d94b396..fd6f4b5 100644
--- a/lucene/analysis/common/src/test/org/apache/lucene/analysis/core/TestRandomChains.java
+++ b/lucene/analysis/common/src/test/org/apache/lucene/analysis/core/TestRandomChains.java
@@ -88,6 +88,7 @@ import org.apache.lucene.analysis.path.PathHierarchyTokenizer;
 import org.apache.lucene.analysis.path.ReversePathHierarchyTokenizer;
 import org.apache.lucene.analysis.payloads.IdentityEncoder;
 import org.apache.lucene.analysis.payloads.PayloadEncoder;
+import org.apache.lucene.analysis.shingle.ShingleFilter;
 import org.apache.lucene.analysis.snowball.TestSnowball;
 import org.apache.lucene.analysis.standard.StandardTokenizer;
 import org.apache.lucene.analysis.synonym.SynonymMap;
@@ -124,6 +125,10 @@ public class TestRandomChains extends BaseTokenStreamTestCase {
     avoidConditionals.add(FingerprintFilter.class);
     avoidConditionals.add(MinHashFilter.class);
     avoidConditionals.add(ConcatenateGraphFilter.class);
+    // ShingleFilter doesn't handle input graphs correctly, so wrapping it in a condition
can
+    // expose inconsistent offsets
+    // https://issues.apache.org/jira/browse/LUCENE-4170
+    avoidConditionals.add(ShingleFilter.class);
   }
 
   private static final Map<Constructor<?>,Predicate<Object[]>> brokenConstructors
= new HashMap<>();


Mime
View raw message