Browse Source

Update Lucene snapshot to 8.6.0-snapshot-9d6c738ffce (#56988)

Update of Lucene snapshot and dealing with API changes
markharwood 5 years ago
parent
commit
df93987a75
51 changed files with 34 additions and 31 deletions
  1. 1 1
      buildSrc/version.properties
  2. 0 1
      modules/lang-expression/licenses/lucene-expressions-8.6.0-snapshot-6c9024f7735.jar.sha1
  3. 1 0
      modules/lang-expression/licenses/lucene-expressions-8.6.0-snapshot-9d6c738ffce.jar.sha1
  4. 0 1
      plugins/analysis-icu/licenses/lucene-analyzers-icu-8.6.0-snapshot-6c9024f7735.jar.sha1
  5. 1 0
      plugins/analysis-icu/licenses/lucene-analyzers-icu-8.6.0-snapshot-9d6c738ffce.jar.sha1
  6. 0 1
      plugins/analysis-kuromoji/licenses/lucene-analyzers-kuromoji-8.6.0-snapshot-6c9024f7735.jar.sha1
  7. 1 0
      plugins/analysis-kuromoji/licenses/lucene-analyzers-kuromoji-8.6.0-snapshot-9d6c738ffce.jar.sha1
  8. 0 1
      plugins/analysis-nori/licenses/lucene-analyzers-nori-8.6.0-snapshot-6c9024f7735.jar.sha1
  9. 1 0
      plugins/analysis-nori/licenses/lucene-analyzers-nori-8.6.0-snapshot-9d6c738ffce.jar.sha1
  10. 0 1
      plugins/analysis-phonetic/licenses/lucene-analyzers-phonetic-8.6.0-snapshot-6c9024f7735.jar.sha1
  11. 1 0
      plugins/analysis-phonetic/licenses/lucene-analyzers-phonetic-8.6.0-snapshot-9d6c738ffce.jar.sha1
  12. 0 1
      plugins/analysis-smartcn/licenses/lucene-analyzers-smartcn-8.6.0-snapshot-6c9024f7735.jar.sha1
  13. 1 0
      plugins/analysis-smartcn/licenses/lucene-analyzers-smartcn-8.6.0-snapshot-9d6c738ffce.jar.sha1
  14. 0 1
      plugins/analysis-stempel/licenses/lucene-analyzers-stempel-8.6.0-snapshot-6c9024f7735.jar.sha1
  15. 1 0
      plugins/analysis-stempel/licenses/lucene-analyzers-stempel-8.6.0-snapshot-9d6c738ffce.jar.sha1
  16. 0 1
      plugins/analysis-ukrainian/licenses/lucene-analyzers-morfologik-8.6.0-snapshot-6c9024f7735.jar.sha1
  17. 1 0
      plugins/analysis-ukrainian/licenses/lucene-analyzers-morfologik-8.6.0-snapshot-9d6c738ffce.jar.sha1
  18. 0 1
      server/licenses/lucene-analyzers-common-8.6.0-snapshot-6c9024f7735.jar.sha1
  19. 1 0
      server/licenses/lucene-analyzers-common-8.6.0-snapshot-9d6c738ffce.jar.sha1
  20. 0 1
      server/licenses/lucene-backward-codecs-8.6.0-snapshot-6c9024f7735.jar.sha1
  21. 1 0
      server/licenses/lucene-backward-codecs-8.6.0-snapshot-9d6c738ffce.jar.sha1
  22. 0 1
      server/licenses/lucene-core-8.6.0-snapshot-6c9024f7735.jar.sha1
  23. 1 0
      server/licenses/lucene-core-8.6.0-snapshot-9d6c738ffce.jar.sha1
  24. 0 1
      server/licenses/lucene-grouping-8.6.0-snapshot-6c9024f7735.jar.sha1
  25. 1 0
      server/licenses/lucene-grouping-8.6.0-snapshot-9d6c738ffce.jar.sha1
  26. 0 1
      server/licenses/lucene-highlighter-8.6.0-snapshot-6c9024f7735.jar.sha1
  27. 1 0
      server/licenses/lucene-highlighter-8.6.0-snapshot-9d6c738ffce.jar.sha1
  28. 0 1
      server/licenses/lucene-join-8.6.0-snapshot-6c9024f7735.jar.sha1
  29. 1 0
      server/licenses/lucene-join-8.6.0-snapshot-9d6c738ffce.jar.sha1
  30. 0 1
      server/licenses/lucene-memory-8.6.0-snapshot-6c9024f7735.jar.sha1
  31. 1 0
      server/licenses/lucene-memory-8.6.0-snapshot-9d6c738ffce.jar.sha1
  32. 0 1
      server/licenses/lucene-misc-8.6.0-snapshot-6c9024f7735.jar.sha1
  33. 1 0
      server/licenses/lucene-misc-8.6.0-snapshot-9d6c738ffce.jar.sha1
  34. 0 1
      server/licenses/lucene-queries-8.6.0-snapshot-6c9024f7735.jar.sha1
  35. 1 0
      server/licenses/lucene-queries-8.6.0-snapshot-9d6c738ffce.jar.sha1
  36. 0 1
      server/licenses/lucene-queryparser-8.6.0-snapshot-6c9024f7735.jar.sha1
  37. 1 0
      server/licenses/lucene-queryparser-8.6.0-snapshot-9d6c738ffce.jar.sha1
  38. 0 1
      server/licenses/lucene-sandbox-8.6.0-snapshot-6c9024f7735.jar.sha1
  39. 1 0
      server/licenses/lucene-sandbox-8.6.0-snapshot-9d6c738ffce.jar.sha1
  40. 0 1
      server/licenses/lucene-spatial-extras-8.6.0-snapshot-6c9024f7735.jar.sha1
  41. 1 0
      server/licenses/lucene-spatial-extras-8.6.0-snapshot-9d6c738ffce.jar.sha1
  42. 0 1
      server/licenses/lucene-spatial3d-8.6.0-snapshot-6c9024f7735.jar.sha1
  43. 1 0
      server/licenses/lucene-spatial3d-8.6.0-snapshot-9d6c738ffce.jar.sha1
  44. 0 1
      server/licenses/lucene-suggest-8.6.0-snapshot-6c9024f7735.jar.sha1
  45. 1 0
      server/licenses/lucene-suggest-8.6.0-snapshot-9d6c738ffce.jar.sha1
  46. 7 0
      server/src/main/java/org/apache/lucene/search/grouping/CollapsingDocValuesSource.java
  47. 1 3
      server/src/main/java/org/elasticsearch/index/query/IntervalsSourceProvider.java
  48. 1 1
      server/src/main/java/org/elasticsearch/search/aggregations/support/ValuesSource.java
  49. 1 3
      server/src/test/java/org/elasticsearch/index/query/IntervalQueryBuilderTests.java
  50. 0 1
      x-pack/plugin/sql/sql-action/licenses/lucene-core-8.6.0-snapshot-6c9024f7735.jar.sha1
  51. 1 0
      x-pack/plugin/sql/sql-action/licenses/lucene-core-8.6.0-snapshot-9d6c738ffce.jar.sha1

+ 1 - 1
buildSrc/version.properties

@@ -1,5 +1,5 @@
 elasticsearch     = 8.0.0
-lucene            = 8.6.0-snapshot-6c9024f7735
+lucene            = 8.6.0-snapshot-9d6c738ffce
 
 bundled_jdk_vendor = adoptopenjdk
 bundled_jdk = 14+36

+ 0 - 1
modules/lang-expression/licenses/lucene-expressions-8.6.0-snapshot-6c9024f7735.jar.sha1

@@ -1 +0,0 @@
-f7e94697a2f2e65aa19056118ddaa1a00df7ebbc

+ 1 - 0
modules/lang-expression/licenses/lucene-expressions-8.6.0-snapshot-9d6c738ffce.jar.sha1

@@ -0,0 +1 @@
+b151419d588744101ab6aa1a7e202a07a17e9746

+ 0 - 1
plugins/analysis-icu/licenses/lucene-analyzers-icu-8.6.0-snapshot-6c9024f7735.jar.sha1

@@ -1 +0,0 @@
-891b25ddde3edffe59f9f25345762078203ddb29

+ 1 - 0
plugins/analysis-icu/licenses/lucene-analyzers-icu-8.6.0-snapshot-9d6c738ffce.jar.sha1

@@ -0,0 +1 @@
+4b7164b5b1117507c0ef3c8eef998ad737ff1fd2

+ 0 - 1
plugins/analysis-kuromoji/licenses/lucene-analyzers-kuromoji-8.6.0-snapshot-6c9024f7735.jar.sha1

@@ -1 +0,0 @@
-56f0262ae595875e6e163b8e31d8fcc464c208fe

+ 1 - 0
plugins/analysis-kuromoji/licenses/lucene-analyzers-kuromoji-8.6.0-snapshot-9d6c738ffce.jar.sha1

@@ -0,0 +1 @@
+d7c96a9ae727b6c5e18bb1ed63faf5c3bf875203

+ 0 - 1
plugins/analysis-nori/licenses/lucene-analyzers-nori-8.6.0-snapshot-6c9024f7735.jar.sha1

@@ -1 +0,0 @@
-0b97440d8349b6e19059ef1f8566ea8753166e81

+ 1 - 0
plugins/analysis-nori/licenses/lucene-analyzers-nori-8.6.0-snapshot-9d6c738ffce.jar.sha1

@@ -0,0 +1 @@
+6445c4715b36be6c0d7e843c5b1ec6e303ab6e6c

+ 0 - 1
plugins/analysis-phonetic/licenses/lucene-analyzers-phonetic-8.6.0-snapshot-6c9024f7735.jar.sha1

@@ -1 +0,0 @@
-2b65d6825a96eb2bea79d76606fdd76a789a3cd4

+ 1 - 0
plugins/analysis-phonetic/licenses/lucene-analyzers-phonetic-8.6.0-snapshot-9d6c738ffce.jar.sha1

@@ -0,0 +1 @@
+93aee27fc71737bd366b25c3a2957fe0429aef29

+ 0 - 1
plugins/analysis-smartcn/licenses/lucene-analyzers-smartcn-8.6.0-snapshot-6c9024f7735.jar.sha1

@@ -1 +0,0 @@
-f88549ade9a0f77856d3b7808920e105e9d61bc4

+ 1 - 0
plugins/analysis-smartcn/licenses/lucene-analyzers-smartcn-8.6.0-snapshot-9d6c738ffce.jar.sha1

@@ -0,0 +1 @@
+525d83fae93270b77dee719c64dd4e81d001c15e

+ 0 - 1
plugins/analysis-stempel/licenses/lucene-analyzers-stempel-8.6.0-snapshot-6c9024f7735.jar.sha1

@@ -1 +0,0 @@
-ea5671e66acb6f70a6c7cd16276b24ed0751dbf5

+ 1 - 0
plugins/analysis-stempel/licenses/lucene-analyzers-stempel-8.6.0-snapshot-9d6c738ffce.jar.sha1

@@ -0,0 +1 @@
+4fc5fc61c7c978f0eb6ea5695a70d6c4de747f35

+ 0 - 1
plugins/analysis-ukrainian/licenses/lucene-analyzers-morfologik-8.6.0-snapshot-6c9024f7735.jar.sha1

@@ -1 +0,0 @@
-bac12d02041e93e9c73c99ac0e7798a0382453c7

+ 1 - 0
plugins/analysis-ukrainian/licenses/lucene-analyzers-morfologik-8.6.0-snapshot-9d6c738ffce.jar.sha1

@@ -0,0 +1 @@
+c2c64f756ee96f761f00f9a38defd43d507eea0b

+ 0 - 1
server/licenses/lucene-analyzers-common-8.6.0-snapshot-6c9024f7735.jar.sha1

@@ -1 +0,0 @@
-e7fb1f82ecc255e015ae6fe8bb77c8ec8b8748ce

+ 1 - 0
server/licenses/lucene-analyzers-common-8.6.0-snapshot-9d6c738ffce.jar.sha1

@@ -0,0 +1 @@
+9d204ea34ae88a4470f1e9011efac42e3ff8b58c

+ 0 - 1
server/licenses/lucene-backward-codecs-8.6.0-snapshot-6c9024f7735.jar.sha1

@@ -1 +0,0 @@
-637bd4a785df39cf7720160e3d7ef40eabad13fc

+ 1 - 0
server/licenses/lucene-backward-codecs-8.6.0-snapshot-9d6c738ffce.jar.sha1

@@ -0,0 +1 @@
+b597d27ddaaa890a09b4f61a571f712864f2ced6

+ 0 - 1
server/licenses/lucene-core-8.6.0-snapshot-6c9024f7735.jar.sha1

@@ -1 +0,0 @@
-ec8401dfd1b41113eba06f3d626a1f2fdf589335

+ 1 - 0
server/licenses/lucene-core-8.6.0-snapshot-9d6c738ffce.jar.sha1

@@ -0,0 +1 @@
+69838ed06991014d1f2530208bef66c59a554fe2

+ 0 - 1
server/licenses/lucene-grouping-8.6.0-snapshot-6c9024f7735.jar.sha1

@@ -1 +0,0 @@
-138abf463c27088a50a2b7c4a267694386c3a0cb

+ 1 - 0
server/licenses/lucene-grouping-8.6.0-snapshot-9d6c738ffce.jar.sha1

@@ -0,0 +1 @@
+34a73729a8be3fde91f9920b5b79615b04e3ea03

+ 0 - 1
server/licenses/lucene-highlighter-8.6.0-snapshot-6c9024f7735.jar.sha1

@@ -1 +0,0 @@
-d8d618145b7eff4ea1a4081ef1918e8967b5ec8e

+ 1 - 0
server/licenses/lucene-highlighter-8.6.0-snapshot-9d6c738ffce.jar.sha1

@@ -0,0 +1 @@
+20332b08670bf874c0db27113dd9c1507e2ce464

+ 0 - 1
server/licenses/lucene-join-8.6.0-snapshot-6c9024f7735.jar.sha1

@@ -1 +0,0 @@
-4b09c5c1a69ce6fe22328006d9129585009eb41a

+ 1 - 0
server/licenses/lucene-join-8.6.0-snapshot-9d6c738ffce.jar.sha1

@@ -0,0 +1 @@
+42d0da090a8ae1fc411bbba62083621a9e880c06

+ 0 - 1
server/licenses/lucene-memory-8.6.0-snapshot-6c9024f7735.jar.sha1

@@ -1 +0,0 @@
-1491780984dc014d34d3d1d0c6656630ba67ca98

+ 1 - 0
server/licenses/lucene-memory-8.6.0-snapshot-9d6c738ffce.jar.sha1

@@ -0,0 +1 @@
+001bf352ba947be5392d45586b8e53b04fabd58c

+ 0 - 1
server/licenses/lucene-misc-8.6.0-snapshot-6c9024f7735.jar.sha1

@@ -1 +0,0 @@
-08a78a91082bd6ae7e4e5535060a1e59a51d8983

+ 1 - 0
server/licenses/lucene-misc-8.6.0-snapshot-9d6c738ffce.jar.sha1

@@ -0,0 +1 @@
+f730849f6a1c894ede85721423e421974eaa11a8

+ 0 - 1
server/licenses/lucene-queries-8.6.0-snapshot-6c9024f7735.jar.sha1

@@ -1 +0,0 @@
-a58e4fa4d7390d0c2dfaa7697702e0c4ab5add48

+ 1 - 0
server/licenses/lucene-queries-8.6.0-snapshot-9d6c738ffce.jar.sha1

@@ -0,0 +1 @@
+92e10bd79a1e330e5257fa204bce0ed0b3611f6d

+ 0 - 1
server/licenses/lucene-queryparser-8.6.0-snapshot-6c9024f7735.jar.sha1

@@ -1 +0,0 @@
-745ed85193fa82ef75ac92be524e90d89ead7345

+ 1 - 0
server/licenses/lucene-queryparser-8.6.0-snapshot-9d6c738ffce.jar.sha1

@@ -0,0 +1 @@
+83cf037431b46ca97303f9c8e6b61658835d5ee2

+ 0 - 1
server/licenses/lucene-sandbox-8.6.0-snapshot-6c9024f7735.jar.sha1

@@ -1 +0,0 @@
-e46dc362bfbac1609f4ecbd7838acd5dae1aa960

+ 1 - 0
server/licenses/lucene-sandbox-8.6.0-snapshot-9d6c738ffce.jar.sha1

@@ -0,0 +1 @@
+3a1add29c46420b2ad406ff4855591bd5a9cb3ab

+ 0 - 1
server/licenses/lucene-spatial-extras-8.6.0-snapshot-6c9024f7735.jar.sha1

@@ -1 +0,0 @@
-167ea704134a3e5bd6dd93283c030c21d3360c63

+ 1 - 0
server/licenses/lucene-spatial-extras-8.6.0-snapshot-9d6c738ffce.jar.sha1

@@ -0,0 +1 @@
+a6c7cc66b953e4f5957f96b80b0c8f43ed6d3dfa

+ 0 - 1
server/licenses/lucene-spatial3d-8.6.0-snapshot-6c9024f7735.jar.sha1

@@ -1 +0,0 @@
-f20507834f2b8c6103ffdc08ac687bdf73d45a09

+ 1 - 0
server/licenses/lucene-spatial3d-8.6.0-snapshot-9d6c738ffce.jar.sha1

@@ -0,0 +1 @@
+4edcd6c035201be43fde76a85982fc2b9a9cbdbf

+ 0 - 1
server/licenses/lucene-suggest-8.6.0-snapshot-6c9024f7735.jar.sha1

@@ -1 +0,0 @@
-ac6c604ce977f2e44a13159021ba4133594ccc40

+ 1 - 0
server/licenses/lucene-suggest-8.6.0-snapshot-9d6c738ffce.jar.sha1

@@ -0,0 +1 @@
+a1dca9d9c650b843ca3ae812d54d8b2219b38f3a

+ 7 - 0
server/src/main/java/org/apache/lucene/search/grouping/CollapsingDocValuesSource.java

@@ -27,6 +27,7 @@ import org.apache.lucene.index.NumericDocValues;
 import org.apache.lucene.index.SortedDocValues;
 import org.apache.lucene.index.SortedNumericDocValues;
 import org.apache.lucene.index.SortedSetDocValues;
+import org.apache.lucene.search.Scorable;
 import org.apache.lucene.util.BytesRef;
 import org.elasticsearch.index.fielddata.AbstractNumericDocValues;
 import org.elasticsearch.index.fielddata.AbstractSortedDocValues;
@@ -139,6 +140,9 @@ abstract class CollapsingDocValuesSource<T> extends GroupSelector<T> {
                         type + "` for field `" + field + "`");
             }
         }
+
+        @Override
+        public void setScorer(Scorable scorer) throws IOException {}
     }
 
     /**
@@ -251,6 +255,9 @@ abstract class CollapsingDocValuesSource<T> extends GroupSelector<T> {
                         + type + "` for field `" + field + "`");
             }
         }
+
+        @Override
+        public void setScorer(Scorable scorer) throws IOException {}
     }
 
     private static DocValuesType getDocValuesType(LeafReader in, String field) {

+ 1 - 3
server/src/main/java/org/elasticsearch/index/query/IntervalsSourceProvider.java

@@ -27,7 +27,6 @@ import org.apache.lucene.queries.intervals.Intervals;
 import org.apache.lucene.queries.intervals.IntervalsSource;
 import org.apache.lucene.search.FuzzyQuery;
 import org.apache.lucene.util.BytesRef;
-import org.apache.lucene.util.automaton.CompiledAutomaton;
 import org.elasticsearch.Version;
 import org.elasticsearch.common.ParseField;
 import org.elasticsearch.common.ParsingException;
@@ -795,8 +794,7 @@ public abstract class IntervalsSourceProvider implements NamedWriteable, ToXCont
             BytesRef normalizedTerm = analyzer.normalize(fieldType.name(), term);
             FuzzyQuery fq = new FuzzyQuery(new Term(fieldType.name(), normalizedTerm),
                 fuzziness.asDistance(term), prefixLength, 128, transpositions);
-            CompiledAutomaton[] automata = fq.getAutomata();
-            source = Intervals.multiterm(automata[automata.length - 1], term);
+            source = Intervals.multiterm(fq.getAutomata(), term);
             if (useField != null) {
                 source = Intervals.fixField(useField, source);
             }

+ 1 - 1
server/src/main/java/org/elasticsearch/search/aggregations/support/ValuesSource.java

@@ -347,7 +347,7 @@ public abstract class ValuesSource {
 
             @Override
             public SortedNumericDocValues longValues(LeafReaderContext context) {
-                return DocValues.emptySortedNumeric(context.reader().maxDoc());
+                return DocValues.emptySortedNumeric();
             }
 
             @Override

+ 1 - 3
server/src/test/java/org/elasticsearch/index/query/IntervalQueryBuilderTests.java

@@ -28,7 +28,6 @@ import org.apache.lucene.search.FuzzyQuery;
 import org.apache.lucene.search.MatchNoDocsQuery;
 import org.apache.lucene.search.Query;
 import org.apache.lucene.util.BytesRef;
-import org.apache.lucene.util.automaton.CompiledAutomaton;
 import org.elasticsearch.common.ParsingException;
 import org.elasticsearch.common.Strings;
 import org.elasticsearch.common.compress.CompressedXContent;
@@ -549,8 +548,7 @@ public class IntervalQueryBuilderTests extends AbstractQueryTestCase<IntervalQue
 
     private static IntervalsSource buildFuzzySource(String term, String label, int prefixLength, boolean transpositions, int editDistance) {
         FuzzyQuery fq = new FuzzyQuery(new Term("field", term), editDistance, prefixLength, 128, transpositions);
-        CompiledAutomaton[] automata = fq.getAutomata();
-        return Intervals.multiterm(automata[automata.length - 1], label);
+        return Intervals.multiterm(fq.getAutomata(), label);
     }
 
     public void testFuzzy() throws IOException {

+ 0 - 1
x-pack/plugin/sql/sql-action/licenses/lucene-core-8.6.0-snapshot-6c9024f7735.jar.sha1

@@ -1 +0,0 @@
-ec8401dfd1b41113eba06f3d626a1f2fdf589335

+ 1 - 0
x-pack/plugin/sql/sql-action/licenses/lucene-core-8.6.0-snapshot-9d6c738ffce.jar.sha1

@@ -0,0 +1 @@
+69838ed06991014d1f2530208bef66c59a554fe2