# Completion Suggesters using Java API

**URL:** <https://discuss.elastic.co/t/completion-suggesters-using-java-api/21264>\
**Category:** Elasticsearch\
**Created:** [December 15, 2014, 10:44pm UTC](https://discuss.elastic.co/t/completion-suggesters-using-java-api/21264 "2014-12-15T22:44:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pradeep\_B](https://avatars.discourse-cdn.com/v4/letter/p/f04885/32.png) [@Pradeep\_B](https://discuss.elastic.co/u/Pradeep_B)\
**Post date:** [December 15, 2014, 10:44pm UTC](https://discuss.elastic.co/t/completion-suggesters-using-java-api/21264/1 "2014-12-15T22:44:36Z")

</div>

Hi  
In the blog post ([http://www.elasticsearch.org/blog/you-complete-me/](http://www.elasticsearch.org/blog/you-complete-me/))  
introducing the Suggestions Feature in Elastic search recommends managing  
suggestions in a lightweight index of its own and the idea is to use the  
payload to render the key to tie it back to the source index.

I am trying to create two indexes :

1. MyDataIndex  
2)MyDataSuggestIndex (for suggestions)

When trying to create a Suggestions Index using BulkProcessor class in Java  
API, I am seeing that the suggestions are not working.  
There is no documentation around suggesters using Java API.

Can someone point to examples / samples to create suggestion entries using  
Java API ? I have tried looking in the archives for this group with no luck.

Any pointers / help is highly appreciated.

Thanks in advance.

Pradeep

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/3c6134f4-4244-486c-a08d-30e5350a51b3%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/3c6134f4-4244-486c-a08d-30e5350a51b3%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![jprante](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jprante/32/44941_2.png) [@jprante](https://discuss.elastic.co/u/jprante)\
**Post date:** [December 16, 2014, 8:26am UTC](https://discuss.elastic.co/t/completion-suggesters-using-java-api/21264/2 "2014-12-16T08:26:35Z")

</div>

Please look at the Elasticsearch unit tests, here

[https://github.com/elasticsearch/elasticsearch/blob/master/src/test/java/org/elasticsearch/search/suggest/CompletionSuggestSearchTests.java](https://github.com/elasticsearch/elasticsearch/blob/master/src/test/java/org/elasticsearch/search/suggest/CompletionSuggestSearchTests.java)

Jörg

On Mon, Dec 15, 2014 at 11:44 PM, Pradeep B [bpradeep.mail@gmail.com](mailto:bpradeep.mail@gmail.com) wrote:

> Hi  
> In the blog post ([Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/blog/you-complete-me/))  
> introducing the Suggestions Feature in Elastic search recommends managing  
> suggestions in a lightweight index of its own and the idea is to use the  
> payload to render the key to tie it back to the source index.
> 
> I am trying to create two indexes :
> 
> 1. MyDataIndex  
> 2)MyDataSuggestIndex (for suggestions)
> 
> When trying to create a Suggestions Index using BulkProcessor class in  
> Java API, I am seeing that the suggestions are not working.  
> There is no documentation around suggesters using Java API.
> 
> Can someone point to examples / samples to create suggestion entries using  
> Java API ? I have tried looking in the archives for this group with no luck.
> 
> Any pointers / help is highly appreciated.
> 
> Thanks in advance.
> 
> Pradeep
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/3c6134f4-4244-486c-a08d-30e5350a51b3%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/3c6134f4-4244-486c-a08d-30e5350a51b3%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/3c6134f4-4244-486c-a08d-30e5350a51b3%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/3c6134f4-4244-486c-a08d-30e5350a51b3%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAKdsXoEhR\_z4hq3pztHY2DWjX\_6Up-zciEihGmRujOKagiKBCw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAKdsXoEhR_z4hq3pztHY2DWjX_6Up-zciEihGmRujOKagiKBCw%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:** [July 6, 2017, 12:43am UTC](https://discuss.elastic.co/t/completion-suggesters-using-java-api/21264/3 "2017-07-06T00:43:32Z")

</div>


