Skip to content

Commit 8a0dc33

Browse files
committed
Upgrade to lucene-7.3.0-snapshot-98a6b3d. (#29298)
Most notable changes include: - this release doesn't have the 7.2.1 version constant so I had to create one - spatial4j and jts were upgraded
1 parent 2173918 commit 8a0dc33

File tree

92 files changed

+164
-282
lines changed

Some content is hidden

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

92 files changed

+164
-282
lines changed

buildSrc/src/main/groovy/org/elasticsearch/gradle/plugin/PluginBuildPlugin.groovy

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public class PluginBuildPlugin extends BuildPlugin {
9595
// we "upgrade" these optional deps to provided for plugins, since they will run
9696
// with a full elasticsearch server that includes optional deps
9797
compileOnly "org.locationtech.spatial4j:spatial4j:${project.versions.spatial4j}"
98-
compileOnly "com.vividsolutions:jts:${project.versions.jts}"
98+
compileOnly "org.locationtech.jts:jts-core:${project.versions.jts}"
9999
compileOnly "org.apache.logging.log4j:log4j-api:${project.versions.log4j}"
100100
compileOnly "org.apache.logging.log4j:log4j-core:${project.versions.log4j}"
101101
compileOnly "org.elasticsearch:jna:${project.versions.jna}"

buildSrc/version.properties

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
elasticsearch = 6.3.0
2-
lucene = 7.2.1
2+
lucene = 7.3.0-snapshot-98a6b3d
33

44
# optional dependencies
5-
spatial4j = 0.6
6-
jts = 1.13
5+
spatial4j = 0.7
6+
jts = 1.15.0
77
jackson = 2.8.10
88
snakeyaml = 1.17
99
# when updating log4j, please update also docs/java-api/index.asciidoc

docs/Versions.asciidoc

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
:version: 6.3.0
22
:major-version: 6.x
3-
:lucene_version: 7.2.1
4-
:lucene_version_path: 7_2_0
3+
:lucene_version: 7.3.0
4+
:lucene_version_path: 7_3_0
55
:branch: 6.x
66
:jdk: 1.8.0_131
77
:jdk_major: 8

docs/java-api/query-dsl/geo-shape-query.asciidoc

+5-5
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ to your classpath in order to use this type:
1212
<dependency>
1313
<groupId>org.locationtech.spatial4j</groupId>
1414
<artifactId>spatial4j</artifactId>
15-
<version>0.6</version> <1>
15+
<version>0.7</version> <1>
1616
</dependency>
1717
1818
<dependency>
19-
<groupId>com.vividsolutions</groupId>
20-
<artifactId>jts</artifactId>
21-
<version>1.13</version> <2>
19+
<groupId>org.locationtech.jts</groupId>
20+
<artifactId>jts-core</artifactId>
21+
<version>1.15.0</version> <2>
2222
<exclusions>
2323
<exclusion>
2424
<groupId>xerces</groupId>
@@ -28,7 +28,7 @@ to your classpath in order to use this type:
2828
</dependency>
2929
-----------------------------------------------
3030
<1> check for updates in http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22org.locationtech.spatial4j%22%20AND%20a%3A%22spatial4j%22[Maven Central]
31-
<2> check for updates in http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22com.vividsolutions%22%20AND%20a%3A%22jts%22[Maven Central]
31+
<2> check for updates in http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22org.locationtech.jts%22%20AND%20a%3A%22jts-core%22[Maven Central]
3232

3333
[source,java]
3434
--------------------------------------------------

modules/analysis-common/src/main/java/org/elasticsearch/analysis/common/TrimTokenFilterFactory.java

+7-1
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@
2525
import org.elasticsearch.env.Environment;
2626
import org.elasticsearch.index.IndexSettings;
2727
import org.elasticsearch.index.analysis.AbstractTokenFilterFactory;
28+
import org.elasticsearch.index.analysis.MultiTermAwareComponent;
2829

29-
public class TrimTokenFilterFactory extends AbstractTokenFilterFactory {
30+
public class TrimTokenFilterFactory extends AbstractTokenFilterFactory implements MultiTermAwareComponent {
3031

3132
private static final String UPDATE_OFFSETS_KEY = "update_offsets";
3233

@@ -41,4 +42,9 @@ public class TrimTokenFilterFactory extends AbstractTokenFilterFactory {
4142
public TokenStream create(TokenStream tokenStream) {
4243
return new TrimFilter(tokenStream);
4344
}
45+
46+
@Override
47+
public Object getMultiTermComponent() {
48+
return this;
49+
}
4450
}

modules/lang-expression/licenses/lucene-expressions-7.2.1.jar.sha1

-1
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
38ff5a1f4bcbfb6e1ffacd3263175c2a1ba23e9f

plugins/analysis-icu/licenses/lucene-analyzers-icu-7.2.1.jar.sha1

-1
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ece1b4232697fad170c589f0df887efa6e66dd4f

plugins/analysis-kuromoji/licenses/lucene-analyzers-kuromoji-7.2.1.jar.sha1

-1
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
a16521e8f7240a9b93ea8ced157298b9d18bca43

plugins/analysis-phonetic/licenses/lucene-analyzers-phonetic-7.2.1.jar.sha1

-1
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
0dc6db8e16bf1ed6ebaa914fcbfbb4970af23747

plugins/analysis-smartcn/licenses/lucene-analyzers-smartcn-7.2.1.jar.sha1

-1
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
de43b057e8800f6c7b26907035664feb686127af

plugins/analysis-stempel/licenses/lucene-analyzers-stempel-7.2.1.jar.sha1

-1
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
c5e6a6d99a04ea5121bfd77470a7818725516ead

plugins/analysis-ukrainian/licenses/lucene-analyzers-morfologik-7.2.1.jar.sha1

-1
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
d755dcef8763b783b7cbba7154a62f91e413007c

server/build.gradle

+12-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ dependencies {
9999

100100
// lucene spatial
101101
compile "org.locationtech.spatial4j:spatial4j:${versions.spatial4j}", optional
102-
compile "com.vividsolutions:jts:${versions.jts}", optional
102+
compile "org.locationtech.jts:jts-core:${versions.jts}", optional
103103

104104
// logging
105105
compile "org.apache.logging.log4j:log4j-api:${versions.log4j}"
@@ -281,6 +281,17 @@ thirdPartyAudit.excludes = [
281281

282282
// from org.locationtech.spatial4j.io.GeoJSONReader (spatial4j)
283283
'org.noggit.JSONParser',
284+
285+
// from lucene-spatial
286+
'com.fasterxml.jackson.databind.JsonSerializer',
287+
'com.fasterxml.jackson.databind.JsonDeserializer',
288+
'com.fasterxml.jackson.databind.node.ArrayNode',
289+
'com.google.common.geometry.S2Cell',
290+
'com.google.common.geometry.S2CellId',
291+
'com.google.common.geometry.S2Projections',
292+
'com.google.common.geometry.S2Point',
293+
'com.google.common.geometry.S2$Metric',
294+
'com.google.common.geometry.S2LatLng',
284295
]
285296

286297
if (JavaVersion.current() > JavaVersion.VERSION_1_8) {

server/licenses/jts-1.13.jar.sha1

-1
This file was deleted.

server/licenses/jts-LICENSE.txt

-165
This file was deleted.
+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
705981b7e25d05a76a3654e597dab6ba423eb79e

server/licenses/jts-core-LICENSE.txt

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
Eclipse Distribution License - v 1.0
2+
3+
Copyright (c) 2007, Eclipse Foundation, Inc. and its licensors.
4+
5+
All rights reserved.
6+
7+
Redistribution and use in source and binary forms, with or without
8+
modification, are permitted provided that the following conditions are met:
9+
10+
Redistributions of source code must retain the above copyright notice, this
11+
list of conditions and the following disclaimer.
12+
13+
Redistributions in binary form must reproduce the above copyright notice,
14+
this list of conditions and the following disclaimer in the documentation
15+
and/or other materials provided with the distribution.
16+
17+
Neither the name of the Eclipse Foundation, Inc. nor the names of its
18+
contributors may be used to endorse or promote products derived from this
19+
software without specific prior written permission.
20+
21+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
22+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
23+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
24+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
25+
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
26+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
27+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
28+
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
30+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31+
File renamed without changes.

server/licenses/lucene-analyzers-common-7.2.1.jar.sha1

-1
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
a731424734fd976b409f1963ba88471caccc18aa

server/licenses/lucene-backward-codecs-7.2.1.jar.sha1

-1
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
5f8ad8c3f8c404803aa81a43ac6f732e19c00935

server/licenses/lucene-core-7.2.1.jar.sha1

-1
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
19b1a1fff6bb077e0660e4f0666807e24dd26865

server/licenses/lucene-grouping-7.2.1.jar.sha1

-1
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
94dd26d685ae981905b775780e6c824f723b14af

server/licenses/lucene-highlighter-7.2.1.jar.sha1

-1
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
9783a0bb56fb8bbd17280d3def97a656999f6a88

server/licenses/lucene-join-7.2.1.jar.sha1

-1
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
01eda74d798af85f846ebd74f53ec7a16e6e2ba1

server/licenses/lucene-memory-7.2.1.jar.sha1

-1
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
29b8b6324722dc6dda784731e3e918de9715422c

server/licenses/lucene-misc-7.2.1.jar.sha1

-1
This file was deleted.

0 commit comments

Comments
 (0)