Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to lucene-7.3.0-snapshot-98a6b3d. #29298

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public class PluginBuildPlugin extends BuildPlugin {
// we "upgrade" these optional deps to provided for plugins, since they will run
// with a full elasticsearch server that includes optional deps
compileOnly "org.locationtech.spatial4j:spatial4j:${project.versions.spatial4j}"
compileOnly "com.vividsolutions:jts:${project.versions.jts}"
compileOnly "org.locationtech.jts:jts-core:${project.versions.jts}"
compileOnly "org.apache.logging.log4j:log4j-api:${project.versions.log4j}"
compileOnly "org.apache.logging.log4j:log4j-core:${project.versions.log4j}"
compileOnly "org.elasticsearch:jna:${project.versions.jna}"
Expand Down
6 changes: 3 additions & 3 deletions buildSrc/version.properties
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
elasticsearch = 7.0.0-alpha1
lucene = 7.2.1
lucene = 7.3.0-snapshot-98a6b3d

# optional dependencies
spatial4j = 0.6
jts = 1.13
spatial4j = 0.7
jts = 1.15.0
jackson = 2.8.10
snakeyaml = 1.17
# when updating log4j, please update also docs/java-api/index.asciidoc
Expand Down
4 changes: 2 additions & 2 deletions docs/Versions.asciidoc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
:version: 7.0.0-alpha1
:major-version: 7.x
:lucene_version: 7.2.1
:lucene_version_path: 7_2_1
:lucene_version: 7.3.0
:lucene_version_path: 7_3_0
:branch: master
:jdk: 1.8.0_131
:jdk_major: 8
Expand Down
10 changes: 5 additions & 5 deletions docs/java-api/query-dsl/geo-shape-query.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ to your classpath in order to use this type:
<dependency>
<groupId>org.locationtech.spatial4j</groupId>
<artifactId>spatial4j</artifactId>
<version>0.6</version> <1>
<version>0.7</version> <1>
</dependency>

<dependency>
<groupId>com.vividsolutions</groupId>
<artifactId>jts</artifactId>
<version>1.13</version> <2>
<groupId>org.locationtech.jts</groupId>
<artifactId>jts-core</artifactId>
<version>1.15.0</version> <2>
<exclusions>
<exclusion>
<groupId>xerces</groupId>
Expand All @@ -28,7 +28,7 @@ to your classpath in order to use this type:
</dependency>
-----------------------------------------------
<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]
<2> check for updates in http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22com.vividsolutions%22%20AND%20a%3A%22jts%22[Maven Central]
<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]

[source,java]
--------------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@
import org.elasticsearch.env.Environment;
import org.elasticsearch.index.IndexSettings;
import org.elasticsearch.index.analysis.AbstractTokenFilterFactory;
import org.elasticsearch.index.analysis.MultiTermAwareComponent;

public class TrimTokenFilterFactory extends AbstractTokenFilterFactory {
public class TrimTokenFilterFactory extends AbstractTokenFilterFactory implements MultiTermAwareComponent {

private static final String UPDATE_OFFSETS_KEY = "update_offsets";

Expand All @@ -41,4 +42,9 @@ public class TrimTokenFilterFactory extends AbstractTokenFilterFactory {
public TokenStream create(TokenStream tokenStream) {
return new TrimFilter(tokenStream);
}

@Override
public Object getMultiTermComponent() {
return this;
}
}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
38ff5a1f4bcbfb6e1ffacd3263175c2a1ba23e9f

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ece1b4232697fad170c589f0df887efa6e66dd4f

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
a16521e8f7240a9b93ea8ced157298b9d18bca43

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0dc6db8e16bf1ed6ebaa914fcbfbb4970af23747

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
de43b057e8800f6c7b26907035664feb686127af

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
c5e6a6d99a04ea5121bfd77470a7818725516ead

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
d755dcef8763b783b7cbba7154a62f91e413007c
13 changes: 12 additions & 1 deletion server/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ dependencies {

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

// logging
compile "org.apache.logging.log4j:log4j-api:${versions.log4j}"
Expand Down Expand Up @@ -287,6 +287,17 @@ thirdPartyAudit.excludes = [

// from org.locationtech.spatial4j.io.GeoJSONReader (spatial4j)
'org.noggit.JSONParser',

// from lucene-spatial
'com.fasterxml.jackson.databind.JsonSerializer',
'com.fasterxml.jackson.databind.JsonDeserializer',
'com.fasterxml.jackson.databind.node.ArrayNode',
'com.google.common.geometry.S2Cell',
'com.google.common.geometry.S2CellId',
'com.google.common.geometry.S2Projections',
'com.google.common.geometry.S2Point',
'com.google.common.geometry.S2$Metric',
'com.google.common.geometry.S2LatLng',
]

if (JavaVersion.current() > JavaVersion.VERSION_1_8) {
Expand Down
1 change: 0 additions & 1 deletion server/licenses/jts-1.13.jar.sha1

This file was deleted.

165 changes: 0 additions & 165 deletions server/licenses/jts-LICENSE.txt

This file was deleted.

1 change: 1 addition & 0 deletions server/licenses/jts-core-1.15.0.jar.sha1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
705981b7e25d05a76a3654e597dab6ba423eb79e
31 changes: 31 additions & 0 deletions server/licenses/jts-core-LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
Eclipse Distribution License - v 1.0

Copyright (c) 2007, Eclipse Foundation, Inc. and its licensors.

All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

Neither the name of the Eclipse Foundation, Inc. nor the names of its
contributors may be used to endorse or promote products derived from this
software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

File renamed without changes.
1 change: 0 additions & 1 deletion server/licenses/lucene-analyzers-common-7.2.1.jar.sha1

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
a731424734fd976b409f1963ba88471caccc18aa
1 change: 0 additions & 1 deletion server/licenses/lucene-backward-codecs-7.2.1.jar.sha1

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
5f8ad8c3f8c404803aa81a43ac6f732e19c00935
1 change: 0 additions & 1 deletion server/licenses/lucene-core-7.2.1.jar.sha1

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
19b1a1fff6bb077e0660e4f0666807e24dd26865
1 change: 0 additions & 1 deletion server/licenses/lucene-grouping-7.2.1.jar.sha1

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
94dd26d685ae981905b775780e6c824f723b14af
1 change: 0 additions & 1 deletion server/licenses/lucene-highlighter-7.2.1.jar.sha1

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
9783a0bb56fb8bbd17280d3def97a656999f6a88
1 change: 0 additions & 1 deletion server/licenses/lucene-join-7.2.1.jar.sha1

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
01eda74d798af85f846ebd74f53ec7a16e6e2ba1
1 change: 0 additions & 1 deletion server/licenses/lucene-memory-7.2.1.jar.sha1

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
29b8b6324722dc6dda784731e3e918de9715422c
1 change: 0 additions & 1 deletion server/licenses/lucene-misc-7.2.1.jar.sha1

This file was deleted.

Loading