How to implement "suggest", with JavaClient

I'd like to run it with "suggest" JavaClient below.

    "suggest": {
        "my-suggestion-1": {
            "text": "sample",
            "completion": {
                "field": "suggest1",
                "size": 10

I could not find the document.

Please let me know the URL of the document.
Also, how should I implement it?

Someone, please lend me your wisdom.


  • Language: Java 8
  • Framework: Spring
    *Elasticsearch client (jar) ver
    • Org.elasticsearch: 5.1.1
    • Org.elasticsearch.client: 5.1.1
  • Elasticsearch's ver: 5.3.1

May be have a look at the Java tests?


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