Hi,
My application with Elasticsearch was working fine until Elasticsearch version 7.17.9, As there is a vulnerability issue with this version as reported by black duck i changed to the recent version 8.12.0,
Once i changed this dependency as shown below iam getting exception "Unsatisfied dependency expressed through field 'restHighLevelClient': Error creating bean with name 'client' defined in com...****.setup.Application: Failed to instantiate [org.elasticsearch.client.RestHighLevelClient]: Factory method 'client' threw exception with message: org/elasticsearch/action/admin/indices/flush/SyncedFlushRequest"
during server start up
org.elasticsearch
elasticsearch 8.12.0
Just changing this dependency with no other code changes is breaking the application with the above exception, THis exception is triggred during server start up
Any idea why this exception triggers with the latest version of Elasticsearch.
After migrating to 8.x and replacing HLRC with ElasticClient application start up issue is resolved and iam forced to replace NativeSearchQueryBuilder to NativeQueryBuilder but iam not able to use withQuery in NativeQueryBuilder as shown below Before Migrating:
nativeSearchQueryBuilder.withQuery(boolQueryBuilder);
After Migrating
nativeQueryBuilder.withQuery(boolQueryBuilder) doesnt compile as there is no withQuery API in NativeQueryBuilder
Can you please let me know what is the API to use boolQueryBuilder with NativeQueryBuilder.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.