# Completion Suggester CRUD with Java API

**URL:** <https://discuss.elastic.co/t/completion-suggester-crud-with-java-api/182816>\
**Category:** Elasticsearch\
**Created:** [May 26, 2019, 10:28pm UTC](https://discuss.elastic.co/t/completion-suggester-crud-with-java-api/182816 "2019-05-26T22:28:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rogito\_manda](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rogito_manda/32/45300_2.png) [@rogito\_manda](https://discuss.elastic.co/u/rogito_manda)\
**Post date:** [May 26, 2019, 10:28pm UTC](https://discuss.elastic.co/t/completion-suggester-crud-with-java-api/182816/1 "2019-05-26T22:28:50Z")

</div>

Hi,  
i´ve been trying for 2 days to figure out how can i perform CRUD operation in Elasticsearch (version 6.5) for Completion Suggester with the Java API. (RestHighLevelClient).

I already checked the whole documentation and i´m more confused than before..It´s pretty incredible for an easy task like this..

For example, how can i perform an equivalent operation with the Java API?:

```
PUT music/_doc/1?refresh
{
    "suggest" : {
        "input": ["Nevermind", "Nirvana"],
        "weight" : 34
    }
}

```

Could maybe someone point me to the related documentation?  
Thank you.

---

<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:** [June 24, 2019, 5:53am UTC](https://discuss.elastic.co/t/completion-suggester-crud-with-java-api/182816/3 "2019-06-24T05:53:55Z")

</div>

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