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
dreamer-89 committed May 16, 2023
1 parent 6aecbb2 commit 9c5c48b
Show file tree
Hide file tree
Showing 49 changed files with 595 additions and 1,021 deletions.
8 changes: 7 additions & 1 deletion buildSrc/version.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
opensearch = 2.8.0
lucene = 9.6.0
lucene = 9.4.2

bundled_jdk_vendor = adoptium
bundled_jdk = 17.0.7+7
Expand All @@ -19,9 +19,15 @@ asm = 9.5
jettison = 1.5.4
woodstox = 6.4.0
kotlin = 1.7.10
<<<<<<< HEAD
antlr4 = 4.11.1
guava = 31.1-jre
<<<<<<< HEAD
protobuf = 3.22.3
=======
=======
>>>>>>> parent of 090ecabafbc ([Backport 2.x] [Upgrade] Lucene 9.5.0 release (#6078) (#6116))
>>>>>>> 6237f6bda22 (Revert "[Backport 2.x] [Upgrade] Lucene 9.5.0 release (#6078) (#6116)")

# when updating the JNA version, also update the version in buildSrc/build.gradle
jna = 5.5.0
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
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

Large diffs are not rendered by default.

Loading

0 comments on commit 9c5c48b

Please sign in to comment.