Skip to content

Commit 4632661

Browse files
authored
Upgrade to a Lucene 7 snapshot (#24089)
We want to upgrade to Lucene 7 ahead of time in order to be able to check whether it causes any trouble to Elasticsearch before Lucene 7.0 gets released. From a user perspective, the main benefit of this upgrade is the enhanced support for sparse fields, whose resource consumption is now function of the number of docs that have a value rather than the total number of docs in the index. Some notes about the change: - it includes the deprecation of the `disable_coord` parameter of the `bool` and `common_terms` queries: Lucene has removed support for coord factors - it includes the deprecation of the `index.similarity.base` expert setting, since it was only useful to configure coords and query norms, which have both been removed - two tests have been marked with `@AwaitsFix` because of #23966, which we intend to address after the merge
1 parent f217eb8 commit 4632661

File tree

269 files changed

+3973
-3848
lines changed

Some content is hidden

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

269 files changed

+3973
-3848
lines changed

buildSrc/src/main/resources/forbidden/es-all-signatures.txt

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,6 @@ java.util.concurrent.ThreadLocalRandom
2626

2727
java.security.MessageDigest#clone() @ use org.elasticsearch.common.hash.MessageDigests
2828

29-
@defaultMessage this should not have been added to lucene in the first place
30-
org.apache.lucene.index.IndexReader#getCombinedCoreAndDeletesKey()
31-
32-
@defaultMessage Soon to be removed
33-
org.apache.lucene.document.FieldType#numericType()
34-
3529
@defaultMessage Don't use MethodHandles in slow ways, don't be lenient in tests.
3630
java.lang.invoke.MethodHandle#invoke(java.lang.Object[])
3731
java.lang.invoke.MethodHandle#invokeWithArguments(java.lang.Object[])

buildSrc/src/main/resources/forbidden/es-core-signatures.txt

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,6 @@ org.apache.lucene.index.IndexReader#decRef()
3636
org.apache.lucene.index.IndexReader#incRef()
3737
org.apache.lucene.index.IndexReader#tryIncRef()
3838

39-
@defaultMessage Close listeners can only installed via ElasticsearchDirectoryReader#addReaderCloseListener
40-
org.apache.lucene.index.IndexReader#addReaderClosedListener(org.apache.lucene.index.IndexReader$ReaderClosedListener)
41-
org.apache.lucene.index.IndexReader#removeReaderClosedListener(org.apache.lucene.index.IndexReader$ReaderClosedListener)
42-
43-
@defaultMessage Pass the precision step from the mappings explicitly instead
44-
org.apache.lucene.search.LegacyNumericRangeQuery#newDoubleRange(java.lang.String,java.lang.Double,java.lang.Double,boolean,boolean)
45-
org.apache.lucene.search.LegacyNumericRangeQuery#newFloatRange(java.lang.String,java.lang.Float,java.lang.Float,boolean,boolean)
46-
org.apache.lucene.search.LegacyNumericRangeQuery#newIntRange(java.lang.String,java.lang.Integer,java.lang.Integer,boolean,boolean)
47-
org.apache.lucene.search.LegacyNumericRangeQuery#newLongRange(java.lang.String,java.lang.Long,java.lang.Long,boolean,boolean)
48-
4939
@defaultMessage Only use wait / notify when really needed try to use concurrency primitives, latches or callbacks instead.
5040
java.lang.Object#wait()
5141
java.lang.Object#wait(long)

buildSrc/version.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# When updating elasticsearch, please update 'rest' version in core/src/main/resources/org/elasticsearch/bootstrap/test-framework.policy
22
elasticsearch = 6.0.0-alpha1
3-
lucene = 6.5.0
3+
lucene = 7.0.0-snapshot-89f6d17
44

55
# optional dependencies
66
spatial4j = 0.6

core/licenses/lucene-analyzers-common-6.5.0.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+
e69234c2e898d86a53edbe8d22e33bebc45286cd

core/licenses/lucene-backward-codecs-6.5.0.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+
48172a8e1fe6562f55ab671d42af53652794d5df

core/licenses/lucene-core-6.5.0.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+
3dab251d4c7ab4ff5095e5f1d1e127ec2cf3c07d

core/licenses/lucene-grouping-6.5.0.jar.sha1

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)