title: Data is not received by Jest Client from ElasticSearch Suggestor 5.1, Play Framework
body: <p>I am trying to retrieve the suggestor result from elasticsearch 5.1 but currently I am getting an empty result. I am currently using jest client. My code is below.   </p>
  
  <pre><code> JestClientFactory factory = new JestClientFactory();
              factory.setHttpClientConfig(new HttpClientConfig
                      .Builder("localhost:9200")
                      .multiThreaded(true)
                      .build());
              JestClient client = factory.getObject();
              String query="{\n" +
                      "  \"suggest\": {\n" +
                      "    \"text\": \"porm\",\n" +
                      "    \"simple_phrase\": {\n" +
                      "      \"phrase\": {\n" +
                      "        \"field\": \"content\",\n" +
                      "        \"size\": 1,\n" +
                      "        \"gram_size\": 3,\n" +
                      "        \"direct_generator\": [ {\n" +
                      "          \"field\": \"content\",\n" +
                      "          \"suggest_mode\": \"always\"\n" +
                      "        } ],\n" +
                      "        \"highlight\": {\n" +
                      "          \"pre_tag\": \"&lt;em&gt;\",\n" +
                      "          \"post_tag\": \"&lt;/em&gt;\"\n" +
                      "        }\n" +
                      "      }\n" +
                      "    }\n" +
                      "  }\n" +
                      "}";
              Suggest suggest1 = new Suggest.Builder(query).addIndex("index").build();
              SuggestResult result1 = client.execute(suggest1);
  
  
              List&lt;SuggestResult.Suggestion&gt; suggestions = result1.getSuggestions("simple_phrase");
              ArrayList&lt;String&gt; suggest2=new ArrayList&lt;String&gt;();
              for (SuggestResult.Suggestion sugg:
                   suggestions) {
                 suggest2.add(sugg.text);
              }
             return ok(Json.toJson(suggest2));
      }
  </code></pre>