# New elasticsearch-client for termsuggest accuracy not available

**URL:** https://discuss.elastic.co/t/new-elasticsearch-client-for-termsuggest-accuracy-not-available/340954
**Category:** Elasticsearch
**Created:** [August 16, 2023, 8:22pm UTC](https://discuss.elastic.co/t/new-elasticsearch-client-for-termsuggest-accuracy-not-available/340954 "2023-08-16T20:22:01Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![ramyogi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ramyogi/32/120207_2.png) [@ramyogi](https://discuss.elastic.co/u/ramyogi)
#### Post date: [August 16, 2023, 8:22pm UTC](https://discuss.elastic.co/t/new-elasticsearch-client-for-termsuggest-accuracy-not-available/340954/1 "2023-08-16T20:22:01Z")

</div>

We could not find any option to supply accuracy with term suggest. But Elasticsearch core lib provided that option.

```auto
https://www.javadoc.io/doc/org.elasticsearch/elasticsearch/latest/org.elasticsearch.server/org/elasticsearch/search/suggest/term/TermSuggestionBuilder.html#accuracy()

```

same we cannot achieve with new client lib of

```auto
https://artifacts.elastic.co/javadoc/co/elastic/clients/elasticsearch-java/8.9.0/co/elastic/clients/elasticsearch/core/search/TermSuggester.html

```

Any help is greatly appreciated.

---

<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: [September 13, 2023, 8:22pm UTC](https://discuss.elastic.co/t/new-elasticsearch-client-for-termsuggest-accuracy-not-available/340954/2 "2023-09-13T20:22:44Z")

</div>

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