# Debugging error when using suggest in elastic search

**URL:** <https://discuss.elastic.co/t/debugging-error-when-using-suggest-in-elastic-search/313115>\
**Category:** Elasticsearch\
**Tags:** language-clients\
**Created:** [August 29, 2022, 1:34am UTC](https://discuss.elastic.co/t/debugging-error-when-using-suggest-in-elastic-search/313115 "2022-08-29T01:34:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Duc\_Vo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/duc_vo/32/110182_2.png) [@Duc\_Vo](https://discuss.elastic.co/u/Duc_Vo)\
**Post date:** [August 29, 2022, 1:34am UTC](https://discuss.elastic.co/t/debugging-error-when-using-suggest-in-elastic-search/313115/1 "2022-08-29T01:34:50Z")

</div>

Invalid NEST response built from a unsuccessful (400) low level call on POST: /demo\_products/\_search?pretty=true&typed\_keys=true

# Audit trail of this API call:

- [1] ProductCheckOnStartup: Took: 00:00:00.2614523
- [2] ProductCheckSuccess: Node: [http://localhost:9200/](http://localhost:9200/) Took: 00:00:00.2468003
- [3] BadResponse: Node: [http://localhost:9200/](http://localhost:9200/) Took: 00:00:00.1196266

# OriginalException: Elasticsearch.Net.ElasticsearchClientException: Request failed to execute. Call: Status code 400 from: POST /demo\_products/\_search?pretty=true&typed\_keys=true. ServerError: Type: search\_phase\_execution\_exception Reason: "all shards failed" CausedBy: "Type: illegal\_argument\_exception Reason: "Field [name] is not a completion suggest field" CausedBy: "Type: illegal\_argument\_exception Reason: "Field [name] is not a completion suggest field"""

# Request:

\<Request stream not captured or already read to completion by serializer. Set DisableDirectStreaming() on ConnectionSettings to force it to be set on the response.\>

# Response:

\<Response stream not captured or already read to completion by serializer. Set DisableDirectStreaming() on ConnectionSettings to force it to be set on the response.\>

Help me! Please.

---

<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 26, 2022, 1:35am UTC](https://discuss.elastic.co/t/debugging-error-when-using-suggest-in-elastic-search/313115/2 "2022-09-26T01:35:24Z")

</div>

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