Browse Source

Merge pull request #14074 from jpountz/upgrade/lucene-5.4-snapshot-1708254

Upgrade to lucene-5.4-snapshot-1708254.
Adrien Grand 10 năm trước cách đây
mục cha
commit
c2049591f9
45 tập tin đã thay đổi với 26 bổ sung26 xóa
  1. 1 1
      core/src/main/java/org/apache/lucene/search/suggest/analyzing/XAnalyzingSuggester.java
  2. 2 3
      core/src/main/java/org/elasticsearch/index/query/GeoShapeQueryBuilder.java
  3. 1 1
      core/src/test/java/org/elasticsearch/search/geo/GeoFilterIT.java
  4. 0 1
      distribution/licenses/lucene-analyzers-common-5.4.0-snapshot-1702855.jar.sha1
  5. 1 0
      distribution/licenses/lucene-analyzers-common-5.4.0-snapshot-1708254.jar.sha1
  6. 0 1
      distribution/licenses/lucene-backward-codecs-5.4.0-snapshot-1702855.jar.sha1
  7. 1 0
      distribution/licenses/lucene-backward-codecs-5.4.0-snapshot-1708254.jar.sha1
  8. 0 1
      distribution/licenses/lucene-core-5.4.0-snapshot-1702855.jar.sha1
  9. 1 0
      distribution/licenses/lucene-core-5.4.0-snapshot-1708254.jar.sha1
  10. 0 1
      distribution/licenses/lucene-grouping-5.4.0-snapshot-1702855.jar.sha1
  11. 1 0
      distribution/licenses/lucene-grouping-5.4.0-snapshot-1708254.jar.sha1
  12. 0 1
      distribution/licenses/lucene-highlighter-5.4.0-snapshot-1702855.jar.sha1
  13. 1 0
      distribution/licenses/lucene-highlighter-5.4.0-snapshot-1708254.jar.sha1
  14. 0 1
      distribution/licenses/lucene-join-5.4.0-snapshot-1702855.jar.sha1
  15. 1 0
      distribution/licenses/lucene-join-5.4.0-snapshot-1708254.jar.sha1
  16. 0 1
      distribution/licenses/lucene-memory-5.4.0-snapshot-1702855.jar.sha1
  17. 1 0
      distribution/licenses/lucene-memory-5.4.0-snapshot-1708254.jar.sha1
  18. 0 1
      distribution/licenses/lucene-misc-5.4.0-snapshot-1702855.jar.sha1
  19. 1 0
      distribution/licenses/lucene-misc-5.4.0-snapshot-1708254.jar.sha1
  20. 0 1
      distribution/licenses/lucene-queries-5.4.0-snapshot-1702855.jar.sha1
  21. 1 0
      distribution/licenses/lucene-queries-5.4.0-snapshot-1708254.jar.sha1
  22. 0 1
      distribution/licenses/lucene-queryparser-5.4.0-snapshot-1702855.jar.sha1
  23. 1 0
      distribution/licenses/lucene-queryparser-5.4.0-snapshot-1708254.jar.sha1
  24. 0 1
      distribution/licenses/lucene-sandbox-5.4.0-snapshot-1702855.jar.sha1
  25. 1 0
      distribution/licenses/lucene-sandbox-5.4.0-snapshot-1708254.jar.sha1
  26. 0 1
      distribution/licenses/lucene-spatial-5.4.0-snapshot-1702855.jar.sha1
  27. 1 0
      distribution/licenses/lucene-spatial-5.4.0-snapshot-1708254.jar.sha1
  28. 0 1
      distribution/licenses/lucene-spatial3d-5.4.0-snapshot-1702855.jar.sha1
  29. 1 0
      distribution/licenses/lucene-spatial3d-5.4.0-snapshot-1708254.jar.sha1
  30. 0 1
      distribution/licenses/lucene-suggest-5.4.0-snapshot-1702855.jar.sha1
  31. 1 0
      distribution/licenses/lucene-suggest-5.4.0-snapshot-1708254.jar.sha1
  32. 1 0
      distribution/licenses/spatial4j-0.5-tests.jar.sha1
  33. 0 1
      plugins/analysis-icu/licenses/lucene-analyzers-icu-5.4.0-snapshot-1702855.jar.sha1
  34. 1 0
      plugins/analysis-icu/licenses/lucene-analyzers-icu-5.4.0-snapshot-1708254.jar.sha1
  35. 0 1
      plugins/analysis-kuromoji/licenses/lucene-analyzers-kuromoji-5.4.0-snapshot-1702855.jar.sha1
  36. 1 0
      plugins/analysis-kuromoji/licenses/lucene-analyzers-kuromoji-5.4.0-snapshot-1708254.jar.sha1
  37. 0 1
      plugins/analysis-phonetic/licenses/lucene-analyzers-phonetic-5.4.0-snapshot-1702855.jar.sha1
  38. 1 0
      plugins/analysis-phonetic/licenses/lucene-analyzers-phonetic-5.4.0-snapshot-1708254.jar.sha1
  39. 0 1
      plugins/analysis-smartcn/licenses/lucene-analyzers-smartcn-5.4.0-snapshot-1702855.jar.sha1
  40. 1 0
      plugins/analysis-smartcn/licenses/lucene-analyzers-smartcn-5.4.0-snapshot-1708254.jar.sha1
  41. 0 1
      plugins/analysis-stempel/licenses/lucene-analyzers-stempel-5.4.0-snapshot-1702855.jar.sha1
  42. 1 0
      plugins/analysis-stempel/licenses/lucene-analyzers-stempel-5.4.0-snapshot-1708254.jar.sha1
  43. 0 1
      plugins/lang-expression/licenses/lucene-expressions-5.4.0-snapshot-1702855.jar.sha1
  44. 1 0
      plugins/lang-expression/licenses/lucene-expressions-5.4.0-snapshot-1708254.jar.sha1
  45. 1 1
      pom.xml

+ 1 - 1
core/src/main/java/org/apache/lucene/search/suggest/analyzing/XAnalyzingSuggester.java

@@ -453,7 +453,7 @@ public long ramBytesUsed() {
   @Override
   public void build(InputIterator iterator) throws IOException {
     String prefix = getClass().getSimpleName();
-    Path directory = OfflineSorter.defaultTempDir();
+    Path directory = OfflineSorter.getDefaultTempDir();
     Path tempInput = Files.createTempFile(directory, prefix, ".input");
     Path tempSorted = Files.createTempFile(directory, prefix, ".sorted");
 

+ 2 - 3
core/src/main/java/org/elasticsearch/index/query/GeoShapeQueryBuilder.java

@@ -22,7 +22,6 @@ package org.elasticsearch.index.query;
 import org.apache.lucene.search.BooleanClause;
 import org.apache.lucene.search.BooleanQuery;
 import org.apache.lucene.search.ConstantScoreQuery;
-import org.apache.lucene.search.Filter;
 import org.apache.lucene.search.Query;
 import org.apache.lucene.spatial.prefix.PrefixTreeStrategy;
 import org.apache.lucene.spatial.prefix.RecursivePrefixTreeStrategy;
@@ -294,12 +293,12 @@ public class GeoShapeQueryBuilder extends AbstractQueryBuilder<GeoShapeQueryBuil
             // in this case, execute disjoint as exists && !intersects
             BooleanQuery.Builder bool = new BooleanQuery.Builder();
             Query exists = ExistsQueryBuilder.newFilter(context, fieldName);
-            Filter intersects = strategy.makeFilter(getArgs(shape, ShapeRelation.INTERSECTS));
+            Query intersects = strategy.makeQuery(getArgs(shape, ShapeRelation.INTERSECTS));
             bool.add(exists, BooleanClause.Occur.MUST);
             bool.add(intersects, BooleanClause.Occur.MUST_NOT);
             query = new ConstantScoreQuery(bool.build());
         } else {
-            query = strategy.makeQuery(getArgs(shape, relation));
+            query = new ConstantScoreQuery(strategy.makeQuery(getArgs(shape, relation)));
         }
         return query;
     }

+ 1 - 1
core/src/test/java/org/elasticsearch/search/geo/GeoFilterIT.java

@@ -584,7 +584,7 @@ public class GeoFilterIT extends ESIntegTestCase {
             RecursivePrefixTreeStrategy strategy = new RecursivePrefixTreeStrategy(tree, "area");
             Shape shape = SpatialContext.GEO.makePoint(0, 0);
             SpatialArgs args = new SpatialArgs(relation, shape);
-            strategy.makeFilter(args);
+            strategy.makeQuery(args);
             return true;
         } catch (UnsupportedSpatialOperation e) {
             e.printStackTrace();

+ 0 - 1
distribution/licenses/lucene-analyzers-common-5.4.0-snapshot-1702855.jar.sha1

@@ -1 +0,0 @@
-5792c4b38aa2cf1f66c9dea8bf139907e33fa018

+ 1 - 0
distribution/licenses/lucene-analyzers-common-5.4.0-snapshot-1708254.jar.sha1

@@ -0,0 +1 @@
+16aa0bdb66b7471e9a26f78a9a5701f678a905db

+ 0 - 1
distribution/licenses/lucene-backward-codecs-5.4.0-snapshot-1702855.jar.sha1

@@ -1 +0,0 @@
-cd6fa25bc29718d8c964b0734fc9a009547453db

+ 1 - 0
distribution/licenses/lucene-backward-codecs-5.4.0-snapshot-1708254.jar.sha1

@@ -0,0 +1 @@
+7f16ec8294a09118237817d8c9c03b87cec67e29

+ 0 - 1
distribution/licenses/lucene-core-5.4.0-snapshot-1702855.jar.sha1

@@ -1 +0,0 @@
-e4e0076ce4331309d1270a9c5b2edb51915fe32a

+ 1 - 0
distribution/licenses/lucene-core-5.4.0-snapshot-1708254.jar.sha1

@@ -0,0 +1 @@
+0a2305ed749cb8abc321ee50b871097b4bda8a64

+ 0 - 1
distribution/licenses/lucene-grouping-5.4.0-snapshot-1702855.jar.sha1

@@ -1 +0,0 @@
-49992ef742b6d3a24b551e06c96c0ab9cbad21e7

+ 1 - 0
distribution/licenses/lucene-grouping-5.4.0-snapshot-1708254.jar.sha1

@@ -0,0 +1 @@
+51ed4b60eddd2ce38fcdc8c89903c1ece336ab4f

+ 0 - 1
distribution/licenses/lucene-highlighter-5.4.0-snapshot-1702855.jar.sha1

@@ -1 +0,0 @@
-85544da78c2d33b2fdfa6f76eb621c8c963eae37

+ 1 - 0
distribution/licenses/lucene-highlighter-5.4.0-snapshot-1708254.jar.sha1

@@ -0,0 +1 @@
+d71c018d888dc5fe71c7fb20c2a6009c36ef117f

+ 0 - 1
distribution/licenses/lucene-join-5.4.0-snapshot-1702855.jar.sha1

@@ -1 +0,0 @@
-5c8b58d902a01cfce046e656eddee5c4e0578316

+ 1 - 0
distribution/licenses/lucene-join-5.4.0-snapshot-1708254.jar.sha1

@@ -0,0 +1 @@
+5e82bc11bccb55af5d88d5526abe9bd3d04f0d13

+ 0 - 1
distribution/licenses/lucene-memory-5.4.0-snapshot-1702855.jar.sha1

@@ -1 +0,0 @@
-55202617e88437dd6def4e42ceb42d18d08a9f6e

+ 1 - 0
distribution/licenses/lucene-memory-5.4.0-snapshot-1708254.jar.sha1

@@ -0,0 +1 @@
+0dfec35d41e7120e48cf6d0ae16a88ef2949e778

+ 0 - 1
distribution/licenses/lucene-misc-5.4.0-snapshot-1702855.jar.sha1

@@ -1 +0,0 @@
-50b8439558061d0bbf09ddf8144d769143d33f00

+ 1 - 0
distribution/licenses/lucene-misc-5.4.0-snapshot-1708254.jar.sha1

@@ -0,0 +1 @@
+30ddb3175c08d443c5a9f74e50e50e3a95afa72d

+ 0 - 1
distribution/licenses/lucene-queries-5.4.0-snapshot-1702855.jar.sha1

@@ -1 +0,0 @@
-ce470e38912676ebc63838635663f17d8db844f5

+ 1 - 0
distribution/licenses/lucene-queries-5.4.0-snapshot-1708254.jar.sha1

@@ -0,0 +1 @@
+5e45b31ff8374ac5dc651ac2477dde5299b7e746

+ 0 - 1
distribution/licenses/lucene-queryparser-5.4.0-snapshot-1702855.jar.sha1

@@ -1 +0,0 @@
-318e192d61eb28de09cc62c42d4e9d044a497e8b

+ 1 - 0
distribution/licenses/lucene-queryparser-5.4.0-snapshot-1708254.jar.sha1

@@ -0,0 +1 @@
+ff0780a5ad9620036f80114b2ce0b30d25647a62

+ 0 - 1
distribution/licenses/lucene-sandbox-5.4.0-snapshot-1702855.jar.sha1

@@ -1 +0,0 @@
-043b3c3c03a5e0687884e5894754933d7e8f2f3e

+ 1 - 0
distribution/licenses/lucene-sandbox-5.4.0-snapshot-1708254.jar.sha1

@@ -0,0 +1 @@
+7679111888ccd185db0b360954777e68364eb88a

+ 0 - 1
distribution/licenses/lucene-spatial-5.4.0-snapshot-1702855.jar.sha1

@@ -1 +0,0 @@
-a9ab07d808456d9a2de248f3b4eba9765808b1cb

+ 1 - 0
distribution/licenses/lucene-spatial-5.4.0-snapshot-1708254.jar.sha1

@@ -0,0 +1 @@
+a1699a0ed320c4db66ae4e8dc9dfd80e4bfc4017

+ 0 - 1
distribution/licenses/lucene-spatial3d-5.4.0-snapshot-1702855.jar.sha1

@@ -1 +0,0 @@
-c9ae48e40c89364e0e69f27c514c924d52e0d57e

+ 1 - 0
distribution/licenses/lucene-spatial3d-5.4.0-snapshot-1708254.jar.sha1

@@ -0,0 +1 @@
+7bcd15e2e685a8c92f48c3d2f355d2dd63073420

+ 0 - 1
distribution/licenses/lucene-suggest-5.4.0-snapshot-1702855.jar.sha1

@@ -1 +0,0 @@
-8bd8fb7e75746fd7bce00b4d2813fca738d68f0b

+ 1 - 0
distribution/licenses/lucene-suggest-5.4.0-snapshot-1708254.jar.sha1

@@ -0,0 +1 @@
+be74ad2360527cca776379499254f355ccd93484

+ 1 - 0
distribution/licenses/spatial4j-0.5-tests.jar.sha1

@@ -0,0 +1 @@
+bdcdf20a723516a233b5bcc0ca7d4decaa88b6ed

+ 0 - 1
plugins/analysis-icu/licenses/lucene-analyzers-icu-5.4.0-snapshot-1702855.jar.sha1

@@ -1 +0,0 @@
-a71d7e2780ae064a6e6ea5b43357d070351620b8

+ 1 - 0
plugins/analysis-icu/licenses/lucene-analyzers-icu-5.4.0-snapshot-1708254.jar.sha1

@@ -0,0 +1 @@
+0ffcda4683ae66ecb96882a6809516d9a288ba52

+ 0 - 1
plugins/analysis-kuromoji/licenses/lucene-analyzers-kuromoji-5.4.0-snapshot-1702855.jar.sha1

@@ -1 +0,0 @@
-a82b7a125e7cc16c6eb050b68bafc9f1e63eb646

+ 1 - 0
plugins/analysis-kuromoji/licenses/lucene-analyzers-kuromoji-5.4.0-snapshot-1708254.jar.sha1

@@ -0,0 +1 @@
+9e34274dd0f1903453f8e4f76ee8e88f15437752

+ 0 - 1
plugins/analysis-phonetic/licenses/lucene-analyzers-phonetic-5.4.0-snapshot-1702855.jar.sha1

@@ -1 +0,0 @@
-64b4db89ab7612284b5c685769c3550fb3018bbc

+ 1 - 0
plugins/analysis-phonetic/licenses/lucene-analyzers-phonetic-5.4.0-snapshot-1708254.jar.sha1

@@ -0,0 +1 @@
+8020f9e0a9c3f30fe1989dcac2085134385a9e93

+ 0 - 1
plugins/analysis-smartcn/licenses/lucene-analyzers-smartcn-5.4.0-snapshot-1702855.jar.sha1

@@ -1 +0,0 @@
-a79e5ed1671d9f511c5aff273ba287557f5f9103

+ 1 - 0
plugins/analysis-smartcn/licenses/lucene-analyzers-smartcn-5.4.0-snapshot-1708254.jar.sha1

@@ -0,0 +1 @@
+f8c9a0775dd92a2e537e0e19fc1831b3214eeef5

+ 0 - 1
plugins/analysis-stempel/licenses/lucene-analyzers-stempel-5.4.0-snapshot-1702855.jar.sha1

@@ -1 +0,0 @@
-7b0b74aebbbfdd2175d6ce045fc538261e016417

+ 1 - 0
plugins/analysis-stempel/licenses/lucene-analyzers-stempel-5.4.0-snapshot-1708254.jar.sha1

@@ -0,0 +1 @@
+a3111a7cff126498ce361d56e363bcf8bee945a9

+ 0 - 1
plugins/lang-expression/licenses/lucene-expressions-5.4.0-snapshot-1702855.jar.sha1

@@ -1 +0,0 @@
-ecfb9a923b19fac61b4e9a79275f6bd242b1f091

+ 1 - 0
plugins/lang-expression/licenses/lucene-expressions-5.4.0-snapshot-1708254.jar.sha1

@@ -0,0 +1 @@
+40f4f54812a7a34312519ceb8b3f128feb4e2185

+ 1 - 1
pom.xml

@@ -46,7 +46,7 @@
 
         <!-- libraries -->
         <lucene.version>5.4.0</lucene.version>
-        <lucene.snapshot.revision>1702855</lucene.snapshot.revision>
+        <lucene.snapshot.revision>1708254</lucene.snapshot.revision>
         <lucene.maven.version>5.4.0-snapshot-${lucene.snapshot.revision}</lucene.maven.version>
         <testframework.version>2.1.17</testframework.version>
         <jackson.version>2.6.2</jackson.version>