Skip to content

Commit

Permalink
Revert "[Backport 2.x] [Upgrade] Lucene 9.5.0 release (opensearch-pro…
Browse files Browse the repository at this point in the history
  • Loading branch information
mch2 committed Mar 5, 2023
1 parent 532d210 commit 459ed31
Show file tree
Hide file tree
Showing 72 changed files with 598 additions and 1,055 deletions.
17 changes: 8 additions & 9 deletions buildSrc/version.properties
Original file line number Diff line number Diff line change
@@ -1,31 +1,30 @@
opensearch = 2.6.1
lucene = 9.5.0
opensearch = 2.6.0
lucene = 9.4.2

bundled_jdk_vendor = adoptium
bundled_jdk = 17.0.6+10

# optional dependencies
spatial4j = 0.7
jts = 1.15.0
jackson = 2.14.2
jackson_databind = 2.14.2
snakeyaml = 1.33
jackson = 2.14.1
jackson_databind = 2.14.1
snakeyaml = 1.32
icu4j = 70.1
supercsv = 2.4.0
# Update to 2.17.2+ is breaking OpenSearchJsonLayout (see https://issues.apache.org/jira/browse/LOG4J2-3562)
log4j = 2.17.1
slf4j = 1.7.36
asm = 9.4
jettison = 1.5.3
jettison = 1.5.1
woodstox = 6.4.0
kotlin = 1.7.10
antlr4 = 4.11.1
guava = 31.1-jre


# when updating the JNA version, also update the version in buildSrc/build.gradle
jna = 5.5.0

netty = 4.1.87.Final
netty = 4.1.86.Final
joda = 2.12.2

# client dependencies
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@
import static org.opensearch.client.Requests.searchRequest;
import static org.opensearch.common.xcontent.XContentFactory.jsonBuilder;
import static org.opensearch.index.query.QueryBuilders.boolQuery;
import static org.opensearch.index.query.QueryBuilders.matchAllQuery;
import static org.opensearch.index.query.QueryBuilders.matchPhrasePrefixQuery;
import static org.opensearch.index.query.QueryBuilders.matchPhraseQuery;
import static org.opensearch.index.query.QueryBuilders.matchQuery;
Expand All @@ -62,7 +61,6 @@
import static org.hamcrest.Matchers.anyOf;
import static org.hamcrest.Matchers.equalTo;
import static org.hamcrest.Matchers.startsWith;
import static org.opensearch.test.hamcrest.OpenSearchAssertions.assertHitCount;

public class HighlighterWithAnalyzersTests extends OpenSearchIntegTestCase {
@Override
Expand Down Expand Up @@ -272,13 +270,9 @@ public void testPhrasePrefix() throws IOException {
refresh();
logger.info("--> highlighting and searching on field0");

SearchSourceBuilder source = searchSource().query(matchAllQuery());
SearchResponse searchResponse = client().search(searchRequest("first_test_index").source(source)).actionGet();
assertHitCount(searchResponse, 2);

source = searchSource().query(matchPhrasePrefixQuery("field0", "bro"))
SearchSourceBuilder source = searchSource().query(matchPhrasePrefixQuery("field0", "bro"))
.highlighter(highlight().field("field0").order("score").preTags("<x>").postTags("</x>"));
searchResponse = client().search(searchRequest("first_test_index").source(source)).actionGet();
SearchResponse searchResponse = client().search(searchRequest("first_test_index").source(source)).actionGet();

assertHighlight(searchResponse, 0, "field0", 0, 1, equalTo("The quick <x>brown</x> fox jumps over the lazy dog"));

Expand Down Expand Up @@ -421,7 +415,6 @@ public void testPhrasePrefix() throws IOException {
public static XContentBuilder type1TermVectorMapping() throws IOException {
return XContentFactory.jsonBuilder()
.startObject()
.startObject("_doc")
.startObject("properties")
.startObject("field1")
.field("type", "text")
Expand All @@ -432,7 +425,6 @@ public static XContentBuilder type1TermVectorMapping() throws IOException {
.field("term_vector", "with_positions_offsets")
.endObject()
.endObject()
.endObject()
.endObject();
}
}
2 changes: 1 addition & 1 deletion modules/lang-expression/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ opensearchplugin {

dependencies {
api "org.apache.lucene:lucene-expressions:${versions.lucene}"
api "org.antlr:antlr4-runtime:${versions.antlr4}"
api 'org.antlr:antlr4-runtime:4.9.3'
api "org.ow2.asm:asm:${versions.asm}"
api "org.ow2.asm:asm-commons:${versions.asm}"
api "org.ow2.asm:asm-tree:${versions.asm}"
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
81befc16ebedb8b8aea3e4c0835dd5ca7e8523a8
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
f433ede87302221b48703a890e5f5701cf1b021d

This file was deleted.

4 changes: 2 additions & 2 deletions modules/lang-painless/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ testClusters.all {
}

dependencies {
api "org.antlr:antlr4-runtime:${versions.antlr4}"
api 'org.antlr:antlr4-runtime:4.9.3'
api "org.ow2.asm:asm-util:${versions.asm}"
api "org.ow2.asm:asm-tree:${versions.asm}"
api "org.ow2.asm:asm-commons:${versions.asm}"
Expand Down Expand Up @@ -160,7 +160,7 @@ configurations {
}

dependencies {
regenerate "org.antlr:antlr4:${versions.antlr4}"
regenerate 'org.antlr:antlr4:4.5.3'
}

String grammarPath = 'src/main/antlr'
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
81befc16ebedb8b8aea3e4c0835dd5ca7e8523a8
Loading

0 comments on commit 459ed31

Please sign in to comment.