ES 7.4.2 - Failed to perform search [Upgrading from 6.4.3]

I'm in a middle of migration from 6.4.3 to 7.4.2 and we've a simple search (that worked before the upgrade) that looks like this:

SearchSourceBuilder searchSourceBuilder = new SearchSourceBuilder();
QueryBuilder matchQueryBuilder =
		QueryBuilders.termQuery(QName, QValue);
SearchRequest searchRequest = new SearchRequest(GENERAL_ALIAS);

try {
	SearchResponse searchResponse =, RequestOptions.DEFAULT);
	//... Here I got an exception...

This code throw an exception:

java.lang.NoSuchMethodError: 'void org.elasticsearch.client.Request.addParameters(java.util.Map)'

pom.xml (maven):



During investigation I figured out that addParameters is red (request.addParameters(params.asMap());) in #409 (org.elasticsearch.client)
Now, request is of type Request that has a public method addParameter(String name, String value) but without 's' (addParameters)

I'll be glad to understand what I'm missing? does I missing the correct dependencies?

Thank you!

While getting screenshot I suddenly pay attention that 'Request' is part of 6.4.3 (and not 7.4.2, as RequestConverters):

So, maybe I wrong but I think there is a bug in 7.4.2 version, because:

  1. This behiavor not reproduce with 7.4.1
  2. Looking for elasticsearch-rest-high-level-client in mvnRepository found zero dependencies for 7.4.2 but found for 7.4.1 (and 7.5.0)

Bottom line, I downgrade for 7.4.1...

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.