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

**URL:** <https://discuss.elastic.co/t/es-7-4-2-failed-to-perform-search-upgrading-from-6-4-3/211012>\
**Category:** Elasticsearch\
**Created:** [December 8, 2019, 2:22pm UTC](https://discuss.elastic.co/t/es-7-4-2-failed-to-perform-search-upgrading-from-6-4-3/211012 "2019-12-08T14:22:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![AsfK](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/asfk/32/58995_2.png) [@AsfK](https://discuss.elastic.co/u/AsfK)\
**Post date:** [December 8, 2019, 2:22pm UTC](https://discuss.elastic.co/t/es-7-4-2-failed-to-perform-search-upgrading-from-6-4-3/211012/1 "2019-12-08T14:22:41Z")

</div>

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);
searchSourceBuilder.query(matchQueryBuilder).size(30);
SearchRequest searchRequest = new SearchRequest(GENERAL_ALIAS);
searchRequest.source(searchSourceBuilder);

try {
	SearchResponse searchResponse = client.search(searchRequest, 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):

> ```
> <dependency>
> <groupId>org.elasticsearch.client</groupId>
> <artifactId>elasticsearch-rest-high-level-client</artifactId>
> <version>7.4.2</version>
> </dependency>
> 
> <dependency>
> <groupId>org.elasticsearch</groupId>
> <artifactId>elasticsearch</artifactId>
> <version>7.4.2</version>
> </dependency>
> 
> ```

**MORE INFO:**  
During investigation I figured out that `addParameters` is red (`request.addParameters(params.asMap());`) in RequestConverters.java #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!

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

 ![Screenshot_1](https://us1.discourse-cdn.com/elastic/original/3X/f/b/fb6b2614b3290960ed760c5c8267be5f674876c2.png)

 ![Screenshot_2](https://us1.discourse-cdn.com/elastic/original/3X/a/2/a2f7cde6e1b8cc7460f99de8daccb057b778038c.png)

---

<div class="post-metadata">

**Author:** ![AsfK](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/asfk/32/58995_2.png) [@AsfK](https://discuss.elastic.co/u/AsfK)\
**Post date:** [December 10, 2019, 6:17am UTC](https://discuss.elastic.co/t/es-7-4-2-failed-to-perform-search-upgrading-from-6-4-3/211012/2 "2019-12-10T06:17:07Z")

</div>

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](https://mvnrepository.com/artifact/org.elasticsearch.client/elasticsearch-rest-high-level-client/7.4.2) but found for [7.4.1](https://mvnrepository.com/artifact/org.elasticsearch.client/elasticsearch-rest-high-level-client/7.4.1) (and [7.5.0](https://mvnrepository.com/artifact/org.elasticsearch.client/elasticsearch-rest-high-level-client/7.5.0))

Bottom line, I downgrade for 7.4.1...

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [January 7, 2020, 6:17am UTC](https://discuss.elastic.co/t/es-7-4-2-failed-to-perform-search-upgrading-from-6-4-3/211012/3 "2020-01-07T06:17:10Z")

</div>

Closed on January 7, 2020, 6:17am UTC

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