OAK-9686: replace Elastic RHLC with Elastic Java Client (#568) (Patch submitted by...
authorAngela Fabregues <angela.fabregues@gmail.com>
Tue, 24 May 2022 10:14:04 +0000 (12:14 +0200)
committerGitHub <noreply@github.com>
Tue, 24 May 2022 10:14:04 +0000 (15:44 +0530)
commite13d6c7dc5df3087955a85cb28f5bfb8b6171977
treeb9ce571c6344c49dfbc306e804415362f3712451
parentc5eb75abce6cac9fd9e9244d0fd34b1345a285e8
OAK-9686: replace Elastic RHLC with Elastic Java Client (#568) (Patch submitted by Angela Fabregues + Fabrizio Fortinio)

* OAK-9686 - Rename the old Elasticsearch client variables

* OAK-9686 - Start the migration to the new Elasticsearch Client

* OAK-9686 - Increase max jar size for run elastic

* OAK-9686 - Migration to the new Elasticsearch Client

* OAK-9686 - Elasticsearch client renaming.

* OAK-9686 - Enabling async client

* OAK-9686 - ElasticIndexCleaner migrated to the new client.

* OAK-9686 - ElasticIndexHelper migrated to the new client (except for elasticknn).

* OAK-9686 - Back to the high level client for ElasticIndexHelper.

* OAK-9686 - migration to 7.17.0

* fix compilation error in oak-benchmarks-elastic

* fix similarity queries

* fix facet/aggregations

* OAK-9686 - the collate source is included in the query.

* OAK-9686 - Support requests on more than an Elasticsearch index

* OAK-9686 - Fixing text field location in suggest query.

* OAK-9686 - Refactoring aggregations

* OAK-9686 - Removing unnecessary overwrittes.

* (minor) improved formatting of ElasticRequestHandler fixed code

* fixed similarity queries

* use java client for ElasticIndexStatisticsTest

* fixed range queries

* fixed ElasticPropertyIndexTest

* fixed baseQuery logic

* remove XContentBuilder from ElasticRequestHandler

* (minor) style improvements in similarityQuery

* ElasticFunctionIndexCommonTest: reintroduced needed overrides

* use the same version for both es clients (7.17.2)

* fix suggest queries

* use UTF-8 to serialize SearchRequest to strings (fixes a couple of test failures)

* ElasticIndexHelper2: added details on why we cannot still migrate to the new client

* get rid of operations using the low level client

* (minor) removed unused code + small improvements

* OAK-9686 - Fixing collate boolean query.

* OAK-9686 - Fixing spellchecker

* OAK-9686 - Executes a single elasticsearch connection to use for all the tests.

* fix plugin version (fixes similarity tests) + minor code style improvements

* improved spellcheck

* bump es to 7.17.3

* fix size history comment in oak-run-elastic pom

* ElasticIndexWriter: reduce dependency from RHLC

* last touches: cleanup + adjusted formatting

* pom: remove obsolete imported packages

* improved connection handling

* pom: fine tune dependencies

* pom: fix import packages

* OAK-9686 - improve exception throw

* OAK-9686 - fix potential null pointer exception

* OAK-9686 - use a single jackson-databind version

* OAK-9686 - skip test when a single Elasticsearch is reused among test executions

* OAK-9686 - fix test for the use of a single Elasticsearch among test executions

* fix a documentation link

Co-authored-by: Angela Fabregues <angela.fabregues@netcentric.biz>
Co-authored-by: fabriziofortino <fabrizio.fortino@gmail.com>
41 files changed:
README.md
oak-benchmarks-elastic/src/main/java/org/apache/jackrabbit/oak/benchmark/ElasticBenchmarkRunner.java
oak-benchmarks-elastic/src/main/java/org/apache/jackrabbit/oak/benchmark/ElasticInsecureFacetSearchTest.java
oak-benchmarks-elastic/src/main/java/org/apache/jackrabbit/oak/benchmark/ElasticStatisticalFacetSearchTest.java
oak-benchmarks-elastic/src/main/java/org/apache/jackrabbit/oak/benchmark/util/ElasticGlobalInitializer.java
oak-benchmarks-elastic/src/main/java/org/apache/jackrabbit/oak/benchmark/util/TestHelper.java
oak-lucene/src/test/java/org/apache/jackrabbit/oak/plugins/index/lucene/LuceneIndexQueryCommonTest.java
oak-run-elastic/pom.xml
oak-search-elastic/pom.xml
oak-search-elastic/src/main/java/org/apache/jackrabbit/oak/plugins/index/elastic/ElasticConnection.java
oak-search-elastic/src/main/java/org/apache/jackrabbit/oak/plugins/index/elastic/ElasticIndexCleaner.java
oak-search-elastic/src/main/java/org/apache/jackrabbit/oak/plugins/index/elastic/ElasticIndexInfoProvider.java
oak-search-elastic/src/main/java/org/apache/jackrabbit/oak/plugins/index/elastic/ElasticIndexStatistics.java
oak-search-elastic/src/main/java/org/apache/jackrabbit/oak/plugins/index/elastic/index/ElasticBulkProcessorHandler.java
oak-search-elastic/src/main/java/org/apache/jackrabbit/oak/plugins/index/elastic/index/ElasticIndexHelper.java
oak-search-elastic/src/main/java/org/apache/jackrabbit/oak/plugins/index/elastic/index/ElasticIndexWriter.java
oak-search-elastic/src/main/java/org/apache/jackrabbit/oak/plugins/index/elastic/query/ElasticIndex.java
oak-search-elastic/src/main/java/org/apache/jackrabbit/oak/plugins/index/elastic/query/ElasticRequestHandler.java
oak-search-elastic/src/main/java/org/apache/jackrabbit/oak/plugins/index/elastic/query/ElasticResponseHandler.java
oak-search-elastic/src/main/java/org/apache/jackrabbit/oak/plugins/index/elastic/query/ElasticSpellcheckIterator.java
oak-search-elastic/src/main/java/org/apache/jackrabbit/oak/plugins/index/elastic/query/ElasticSuggestIterator.java
oak-search-elastic/src/main/java/org/apache/jackrabbit/oak/plugins/index/elastic/query/async/ElasticResponseListener.java
oak-search-elastic/src/main/java/org/apache/jackrabbit/oak/plugins/index/elastic/query/async/ElasticResultRowAsyncIterator.java
oak-search-elastic/src/main/java/org/apache/jackrabbit/oak/plugins/index/elastic/query/async/facets/ElasticInsecureFacetAsyncProvider.java
oak-search-elastic/src/main/java/org/apache/jackrabbit/oak/plugins/index/elastic/query/async/facets/ElasticSecureFacetAsyncProvider.java
oak-search-elastic/src/main/java/org/apache/jackrabbit/oak/plugins/index/elastic/query/async/facets/ElasticStatisticalFacetAsyncProvider.java
oak-search-elastic/src/main/java/org/apache/jackrabbit/oak/plugins/index/elastic/util/ElasticIndexUtils.java
oak-search-elastic/src/main/java/org/apache/jackrabbit/oak/plugins/index/elastic/util/TermQueryBuilderFactory.java
oak-search-elastic/src/test/java/org/apache/jackrabbit/oak/plugins/index/elastic/ElasticAbstractQueryTest.java
oak-search-elastic/src/test/java/org/apache/jackrabbit/oak/plugins/index/elastic/ElasticConnectionRule.java
oak-search-elastic/src/test/java/org/apache/jackrabbit/oak/plugins/index/elastic/ElasticConnectionTest.java
oak-search-elastic/src/test/java/org/apache/jackrabbit/oak/plugins/index/elastic/ElasticContentTest.java
oak-search-elastic/src/test/java/org/apache/jackrabbit/oak/plugins/index/elastic/ElasticFacetTest.java
oak-search-elastic/src/test/java/org/apache/jackrabbit/oak/plugins/index/elastic/ElasticIndexProviderServiceTest.java
oak-search-elastic/src/test/java/org/apache/jackrabbit/oak/plugins/index/elastic/ElasticIndexQueryCommonTest.java
oak-search-elastic/src/test/java/org/apache/jackrabbit/oak/plugins/index/elastic/ElasticIndexStatisticsTest.java
oak-search-elastic/src/test/java/org/apache/jackrabbit/oak/plugins/index/elastic/ElasticPropertyIndexTest.java
oak-search-elastic/src/test/java/org/apache/jackrabbit/oak/plugins/index/elastic/ElasticSimilarQueryTest.java
oak-search-elastic/src/test/java/org/apache/jackrabbit/oak/plugins/index/elastic/ElasticTestServer.java
oak-search-elastic/src/test/resources/elasticstartscript.sh
oak-search/src/test/java/org/apache/jackrabbit/oak/plugins/index/IndexQueryCommonTest.java