Browse Source

Merge pull request #14784 from mikemccand/upgrade_lucene_1714615

Upgrade Lucene to 5.4.0-snapshot-1714615
Michael McCandless 10 years ago
parent
commit
01f12fc8d5
44 changed files with 33 additions and 23 deletions
  1. 1 1
      buildSrc/version.properties
  2. 10 0
      core/src/main/java/org/elasticsearch/index/search/geo/GeoDistanceRangeQuery.java
  3. 1 1
      core/src/main/resources/org/elasticsearch/bootstrap/security.policy
  4. 1 1
      core/src/main/resources/org/elasticsearch/bootstrap/test-framework.policy
  5. 0 1
      distribution/licenses/lucene-analyzers-common-5.4.0-snapshot-1712973.jar.sha1
  6. 1 0
      distribution/licenses/lucene-analyzers-common-5.4.0-snapshot-1714615.jar.sha1
  7. 0 1
      distribution/licenses/lucene-backward-codecs-5.4.0-snapshot-1712973.jar.sha1
  8. 1 0
      distribution/licenses/lucene-backward-codecs-5.4.0-snapshot-1714615.jar.sha1
  9. 0 1
      distribution/licenses/lucene-core-5.4.0-snapshot-1712973.jar.sha1
  10. 1 0
      distribution/licenses/lucene-core-5.4.0-snapshot-1714615.jar.sha1
  11. 0 1
      distribution/licenses/lucene-grouping-5.4.0-snapshot-1712973.jar.sha1
  12. 1 0
      distribution/licenses/lucene-grouping-5.4.0-snapshot-1714615.jar.sha1
  13. 0 1
      distribution/licenses/lucene-highlighter-5.4.0-snapshot-1712973.jar.sha1
  14. 1 0
      distribution/licenses/lucene-highlighter-5.4.0-snapshot-1714615.jar.sha1
  15. 0 1
      distribution/licenses/lucene-join-5.4.0-snapshot-1712973.jar.sha1
  16. 1 0
      distribution/licenses/lucene-join-5.4.0-snapshot-1714615.jar.sha1
  17. 0 1
      distribution/licenses/lucene-memory-5.4.0-snapshot-1712973.jar.sha1
  18. 1 0
      distribution/licenses/lucene-memory-5.4.0-snapshot-1714615.jar.sha1
  19. 0 1
      distribution/licenses/lucene-misc-5.4.0-snapshot-1712973.jar.sha1
  20. 1 0
      distribution/licenses/lucene-misc-5.4.0-snapshot-1714615.jar.sha1
  21. 0 1
      distribution/licenses/lucene-queries-5.4.0-snapshot-1712973.jar.sha1
  22. 1 0
      distribution/licenses/lucene-queries-5.4.0-snapshot-1714615.jar.sha1
  23. 0 1
      distribution/licenses/lucene-queryparser-5.4.0-snapshot-1712973.jar.sha1
  24. 1 0
      distribution/licenses/lucene-queryparser-5.4.0-snapshot-1714615.jar.sha1
  25. 0 1
      distribution/licenses/lucene-sandbox-5.4.0-snapshot-1712973.jar.sha1
  26. 1 0
      distribution/licenses/lucene-sandbox-5.4.0-snapshot-1714615.jar.sha1
  27. 0 1
      distribution/licenses/lucene-spatial-5.4.0-snapshot-1712973.jar.sha1
  28. 1 0
      distribution/licenses/lucene-spatial-5.4.0-snapshot-1714615.jar.sha1
  29. 0 1
      distribution/licenses/lucene-spatial3d-5.4.0-snapshot-1712973.jar.sha1
  30. 1 0
      distribution/licenses/lucene-spatial3d-5.4.0-snapshot-1714615.jar.sha1
  31. 0 1
      distribution/licenses/lucene-suggest-5.4.0-snapshot-1712973.jar.sha1
  32. 1 0
      distribution/licenses/lucene-suggest-5.4.0-snapshot-1714615.jar.sha1
  33. 0 1
      plugins/analysis-icu/licenses/lucene-analyzers-icu-5.4.0-snapshot-1712973.jar.sha1
  34. 1 0
      plugins/analysis-icu/licenses/lucene-analyzers-icu-5.4.0-snapshot-1714615.jar.sha1
  35. 0 1
      plugins/analysis-kuromoji/licenses/lucene-analyzers-kuromoji-5.4.0-snapshot-1712973.jar.sha1
  36. 1 0
      plugins/analysis-kuromoji/licenses/lucene-analyzers-kuromoji-5.4.0-snapshot-1714615.jar.sha1
  37. 0 1
      plugins/analysis-phonetic/licenses/lucene-analyzers-phonetic-5.4.0-snapshot-1712973.jar.sha1
  38. 1 0
      plugins/analysis-phonetic/licenses/lucene-analyzers-phonetic-5.4.0-snapshot-1714615.jar.sha1
  39. 0 1
      plugins/analysis-smartcn/licenses/lucene-analyzers-smartcn-5.4.0-snapshot-1712973.jar.sha1
  40. 1 0
      plugins/analysis-smartcn/licenses/lucene-analyzers-smartcn-5.4.0-snapshot-1714615.jar.sha1
  41. 0 1
      plugins/analysis-stempel/licenses/lucene-analyzers-stempel-5.4.0-snapshot-1712973.jar.sha1
  42. 1 0
      plugins/analysis-stempel/licenses/lucene-analyzers-stempel-5.4.0-snapshot-1714615.jar.sha1
  43. 0 1
      plugins/lang-expression/licenses/lucene-expressions-5.4.0-snapshot-1712973.jar.sha1
  44. 1 0
      plugins/lang-expression/licenses/lucene-expressions-5.4.0-snapshot-1714615.jar.sha1

+ 1 - 1
buildSrc/version.properties

@@ -1,5 +1,5 @@
 elasticsearch     = 3.0.0-SNAPSHOT
-lucene            = 5.4.0-snapshot-1712973
+lucene            = 5.4.0-snapshot-1714615
 
 # optional dependencies
 spatial4j         = 0.5

+ 10 - 0
core/src/main/java/org/elasticsearch/index/search/geo/GeoDistanceRangeQuery.java

@@ -172,6 +172,16 @@ public class GeoDistanceRangeQuery extends Query {
                         }
                         return false;
                     }
+
+                    @Override
+                    public float matchCost() {
+                        if (distanceBoundingCheck == GeoDistance.ALWAYS_INSTANCE) {
+                            return 0.0f;
+                        } else {
+                            // TODO: is this right (up to 4 comparisons from GeoDistance.SimpleDistanceBoundingCheck)?
+                            return 4.0f;
+                        }
+                    }
                 };
                 return new ConstantScoreScorer(this, score(), twoPhaseIterator);
             }

+ 1 - 1
core/src/main/resources/org/elasticsearch/bootstrap/security.policy

@@ -31,7 +31,7 @@ grant codeBase "${codebase.securesm-1.0.jar}" {
 //// Very special jar permissions:
 //// These are dangerous permissions that we don't want to grant to everything.
 
-grant codeBase "${codebase.lucene-core-5.4.0-snapshot-1712973.jar}" {
+grant codeBase "${codebase.lucene-core-5.4.0-snapshot-1714615.jar}" {
   // needed to allow MMapDirectory's "unmap hack"
   permission java.lang.RuntimePermission "accessClassInPackage.sun.misc";
   permission java.lang.reflect.ReflectPermission "suppressAccessChecks";

+ 1 - 1
core/src/main/resources/org/elasticsearch/bootstrap/test-framework.policy

@@ -30,7 +30,7 @@ grant codeBase "${codebase.securemock-1.1.jar}" {
   permission java.lang.reflect.ReflectPermission "suppressAccessChecks";
 };
 
-grant codeBase "${codebase.lucene-test-framework-5.4.0-snapshot-1712973.jar}" {
+grant codeBase "${codebase.lucene-test-framework-5.4.0-snapshot-1714615.jar}" {
   // needed by RamUsageTester
   permission java.lang.reflect.ReflectPermission "suppressAccessChecks";
 };

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

@@ -1 +0,0 @@
-d70e990753cda92e9e817eb7e19baf8a17e663f0

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

@@ -0,0 +1 @@
+95e58f09a8878e74f2cceba8aca898d7464782a8

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

@@ -1 +0,0 @@
-68387395739fa891ca728c84b3f79d41d8becc3a

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

@@ -0,0 +1 @@
+bf7600f7556e4cbdfb7b93947e0ef2312d4bfa6f

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

@@ -1 +0,0 @@
-d984920437acc95a0f488c6df35ad2e846103471

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

@@ -0,0 +1 @@
+d8d3f55ea169ec7a483c076d8d786d2fa7ec0447

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

@@ -1 +0,0 @@
-eed34253185f1c3cf319d1a19714692471f916b8

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

@@ -0,0 +1 @@
+a77cedd6e706317f2f3c1b693736ed191a30a488

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

@@ -1 +0,0 @@
-726b97ce4293dcf3b9e6cd6e11d6c44f21a69e91

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

@@ -0,0 +1 @@
+84d9d5617fae821a7cf1f0f5ac961f4128a936e9

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

@@ -1 +0,0 @@
-e594cd351b1345f1c0c5c768479942cc5050d04f

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

@@ -0,0 +1 @@
+9e7646fb8cfbb72e061eba83467a05671cfa5ee1

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

@@ -1 +0,0 @@
-ed123b7bc78460396899abb90649dad89f7744e0

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

@@ -0,0 +1 @@
+068417b06ee7adf7f751bbeabdb2ed14e5ef3172

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

@@ -1 +0,0 @@
-ca9cd3d0040328219c0ddfa28cef7fcb6559b98c

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

@@ -0,0 +1 @@
+f12de7f380e1f40b9432c90a2bb0b9ba67e94c41

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

@@ -1 +0,0 @@
-8a814d31b827f7b418b8f3aeb0417c43e2edf533

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

@@ -0,0 +1 @@
+8313aa54e3d13e40bf7bf32b6ee68c7c4b547d6a

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

@@ -1 +0,0 @@
-ecd788599b312a3bbd3aaa9c12d5714e72c1cf1e

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

@@ -0,0 +1 @@
+62696f81612a2594c5eac93c9db57c108d3e951a

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

@@ -1 +0,0 @@
-50aa4f366fd7832b8a1c2fb50843ee1058805902

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

@@ -0,0 +1 @@
+a506a09e97070b74c226627ab8adcde9f32576ef

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

@@ -1 +0,0 @@
-e301e9e35e6f33e658ccd0ae06b32336b13a935c

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

@@ -0,0 +1 @@
+22924c220508d02a30e9425f6293fcff1621a23a

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

@@ -1 +0,0 @@
-864e2e23f0e64c9d9dd412c0b0aaa36705e37786

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

@@ -0,0 +1 @@
+af3be612c990303f6c575411b436c967f665876c

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

@@ -1 +0,0 @@
-0279e2978e391523da6f5c577d598be0cc94f883

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

@@ -0,0 +1 @@
+c797cf414ac18868e804afe6be65c30046a5d2dc

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

@@ -1 +0,0 @@
-8cc60f870ebfb5e27f01810032c6d57765978b37

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

@@ -0,0 +1 @@
+392aa5769188f7290628f4e2740ddad830d19069

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

@@ -1 +0,0 @@
-de798609f67720bee73c0a5139b3b87cb6d0aa78

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

@@ -0,0 +1 @@
+b08b3182b931cb22c41e5535bc47acb6f6bf67df

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

@@ -1 +0,0 @@
-bfb5d0a5626532e2256f5a430a2b9fca7243c9b9

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

@@ -0,0 +1 @@
+1952d76f8f0d339f7f6c3500f61954696f08d743

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

@@ -1 +0,0 @@
-286fa90cd48c8500f99852fc597a08bc00cf3302

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

@@ -0,0 +1 @@
+f27b8e582861492f3743b90094fdd28286ddb270

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

@@ -1 +0,0 @@
-37598eb36c271b93707d9f106f84a4dcc60b97c9

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

@@ -0,0 +1 @@
+3c39cf9826697f1558d999a52f4b0faf526950e4

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

@@ -1 +0,0 @@
-71f1017b9dff2336be8389ad09c506cfad15b5bf

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

@@ -0,0 +1 @@
+1a4ece7c891f99b5a61b72dbe86f69ce26fc18ad