Skip to content

Commit 01f12fc

Browse files
author
Michael McCandless
committed
Merge pull request #14784 from mikemccand/upgrade_lucene_1714615
Upgrade Lucene to 5.4.0-snapshot-1714615
2 parents 4ab93f4 + a0bf253 commit 01f12fc

File tree

44 files changed

+33
-23
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+33
-23
lines changed

buildSrc/version.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
elasticsearch = 3.0.0-SNAPSHOT
2-
lucene = 5.4.0-snapshot-1712973
2+
lucene = 5.4.0-snapshot-1714615
33

44
# optional dependencies
55
spatial4j = 0.5

core/src/main/java/org/elasticsearch/index/search/geo/GeoDistanceRangeQuery.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,16 @@ public boolean matches() throws IOException {
172172
}
173173
return false;
174174
}
175+
176+
@Override
177+
public float matchCost() {
178+
if (distanceBoundingCheck == GeoDistance.ALWAYS_INSTANCE) {
179+
return 0.0f;
180+
} else {
181+
// TODO: is this right (up to 4 comparisons from GeoDistance.SimpleDistanceBoundingCheck)?
182+
return 4.0f;
183+
}
184+
}
175185
};
176186
return new ConstantScoreScorer(this, score(), twoPhaseIterator);
177187
}

core/src/main/resources/org/elasticsearch/bootstrap/security.policy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ grant codeBase "${codebase.securesm-1.0.jar}" {
3131
//// Very special jar permissions:
3232
//// These are dangerous permissions that we don't want to grant to everything.
3333

34-
grant codeBase "${codebase.lucene-core-5.4.0-snapshot-1712973.jar}" {
34+
grant codeBase "${codebase.lucene-core-5.4.0-snapshot-1714615.jar}" {
3535
// needed to allow MMapDirectory's "unmap hack"
3636
permission java.lang.RuntimePermission "accessClassInPackage.sun.misc";
3737
permission java.lang.reflect.ReflectPermission "suppressAccessChecks";

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ grant codeBase "${codebase.securemock-1.1.jar}" {
3030
permission java.lang.reflect.ReflectPermission "suppressAccessChecks";
3131
};
3232

33-
grant codeBase "${codebase.lucene-test-framework-5.4.0-snapshot-1712973.jar}" {
33+
grant codeBase "${codebase.lucene-test-framework-5.4.0-snapshot-1714615.jar}" {
3434
// needed by RamUsageTester
3535
permission java.lang.reflect.ReflectPermission "suppressAccessChecks";
3636
};

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

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
95e58f09a8878e74f2cceba8aca898d7464782a8

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

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
bf7600f7556e4cbdfb7b93947e0ef2312d4bfa6f

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

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
d8d3f55ea169ec7a483c076d8d786d2fa7ec0447

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

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
a77cedd6e706317f2f3c1b693736ed191a30a488

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

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
84d9d5617fae821a7cf1f0f5ac961f4128a936e9

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

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
9e7646fb8cfbb72e061eba83467a05671cfa5ee1

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

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
068417b06ee7adf7f751bbeabdb2ed14e5ef3172

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

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
f12de7f380e1f40b9432c90a2bb0b9ba67e94c41

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

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
8313aa54e3d13e40bf7bf32b6ee68c7c4b547d6a

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

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
62696f81612a2594c5eac93c9db57c108d3e951a

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

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
a506a09e97070b74c226627ab8adcde9f32576ef

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

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
22924c220508d02a30e9425f6293fcff1621a23a

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

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
af3be612c990303f6c575411b436c967f665876c

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

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
c797cf414ac18868e804afe6be65c30046a5d2dc

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

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
392aa5769188f7290628f4e2740ddad830d19069

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

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
b08b3182b931cb22c41e5535bc47acb6f6bf67df

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

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
1952d76f8f0d339f7f6c3500f61954696f08d743

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

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
f27b8e582861492f3743b90094fdd28286ddb270

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

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3c39cf9826697f1558d999a52f4b0faf526950e4

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

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
1a4ece7c891f99b5a61b72dbe86f69ce26fc18ad

0 commit comments

Comments
 (0)