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 0d3017c commit 1abd9c6
Show file tree
Hide file tree
Showing 73 changed files with 595 additions and 1,044 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- Bump `com.networknt:json-schema-validator` from 1.0.78 to 1.0.81 (#7460)
- Bump Apache Lucene to 9.6.0 ([#7505](https:/opensearch-project/OpenSearch/pull/7505))
- Bump `com.google.cloud:google-cloud-core-http` from 1.93.3 to 2.17.0 (#7488)
- Update nebula-publishing-plugin to 19.2.0 ([#5704](https:/opensearch-project/OpenSearch/pull/5704))
- Bumps `reactor-netty` from 1.1.1 to 1.1.2 ([#5878](https:/opensearch-project/OpenSearch/pull/5878))
- OpenJDK Update (January 2023 Patch releases) ([#6075](https:/opensearch-project/OpenSearch/pull/6075))
- Bumps `Mockito` from 4.7.0 to 5.1.0, `ByteBuddy` from 1.12.18 to 1.12.22 ([#6088](https:/opensearch-project/OpenSearch/pull/6088))
- Bumps `joda` from 2.10.13 to 2.12.2 ([#6095](https:/opensearch-project/OpenSearch/pull/6095))

### Changed
- Enable `./gradlew build` on MacOS by disabling bcw tests ([#7303](https:/opensearch-project/OpenSearch/pull/7303))
Expand Down
2 changes: 1 addition & 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.5.0
lucene = 9.4.2

bundled_jdk_vendor = adoptium
bundled_jdk = 17.0.7+7
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 1abd9c6

Please sign in to comment.