Autocomplete suggester Java API?

I'm changing our current autocomplete implementation to use the new
autocomplete suggester as below. Is there a Java API available to send the
suggest search request to ElasticSearch?

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/2ef13bbf-585a-4dd2-97d8-28b6edd6d1f0%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

I found an example in the tests, if anyone else is looking for it and comes
across this post:

SuggestResponse suggestResponse =
client().prepareSuggest(INDEX).addSuggestion(
new
CompletionSuggestionBuilder("testSuggestions").field(FIELD).text("foo").size(10)

On Thursday, March 6, 2014 4:18:16 PM UTC, Dan wrote:

I'm changing our current autocomplete implementation to use the new
autocomplete suggester as below. Is there a Java API available to send the
suggest search request to Elasticsearch?

Elasticsearch Platform — Find real-time answers at scale | Elastic

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/e0e3fca2-cb22-4653-8f39-7636b2379bdc%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

This is another class for fuzzy match: CompletionSuggestionFuzzyBuilder

-Amit.

On Thu, Mar 6, 2014 at 8:56 AM, Dan dan.tuffery@gmail.com wrote:

I found an example in the tests, if anyone else is looking for it and
comes across this post:

SuggestResponse suggestResponse =
client().prepareSuggest(INDEX).addSuggestion(
new
CompletionSuggestionBuilder("testSuggestions").field(FIELD).text("foo").size(10)

On Thursday, March 6, 2014 4:18:16 PM UTC, Dan wrote:

I'm changing our current autocomplete implementation to use the new
autocomplete suggester as below. Is there a Java API available to send the
suggest search request to Elasticsearch?

Elasticsearch Platform — Find real-time answers at scale | Elastic

--
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.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/e0e3fca2-cb22-4653-8f39-7636b2379bdc%40googlegroups.comhttps://groups.google.com/d/msgid/elasticsearch/e0e3fca2-cb22-4653-8f39-7636b2379bdc%40googlegroups.com?utm_medium=email&utm_source=footer
.

For more options, visit https://groups.google.com/groups/opt_out.

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAAOGaQ%2BbMbmfymyXUgbnKkHVE-Fk%2BYfuZc3waCbhgec%3D76b-7Q%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

Thanks Amit. Is there anyway to execute the autocomplete suggest on
multiple fields within the same request?

On Thu, Mar 6, 2014 at 5:03 PM, Amit Soni amitsoni29@gmail.com wrote:

This is another class for fuzzy match: CompletionSuggestionFuzzyBuilder

-Amit.

On Thu, Mar 6, 2014 at 8:56 AM, Dan dan.tuffery@gmail.com wrote:

I found an example in the tests, if anyone else is looking for it and
comes across this post:

SuggestResponse suggestResponse =
client().prepareSuggest(INDEX).addSuggestion(
new
CompletionSuggestionBuilder("testSuggestions").field(FIELD).text("foo").size(10)

On Thursday, March 6, 2014 4:18:16 PM UTC, Dan wrote:

I'm changing our current autocomplete implementation to use the new
autocomplete suggester as below. Is there a Java API available to send the
suggest search request to Elasticsearch?

Elasticsearch Platform — Find real-time answers at scale | Elastic

--
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.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/e0e3fca2-cb22-4653-8f39-7636b2379bdc%40googlegroups.comhttps://groups.google.com/d/msgid/elasticsearch/e0e3fca2-cb22-4653-8f39-7636b2379bdc%40googlegroups.com?utm_medium=email&utm_source=footer
.

For more options, visit https://groups.google.com/groups/opt_out.

--
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.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/CAAOGaQ%2BbMbmfymyXUgbnKkHVE-Fk%2BYfuZc3waCbhgec%3D76b-7Q%40mail.gmail.comhttps://groups.google.com/d/msgid/elasticsearch/CAAOGaQ%2BbMbmfymyXUgbnKkHVE-Fk%2BYfuZc3waCbhgec%3D76b-7Q%40mail.gmail.com?utm_medium=email&utm_source=footer
.

For more options, visit https://groups.google.com/groups/opt_out.

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAEyth3vSxQrXiQe6kTTM9-fbYGD9ojVhGOerG8KZtmB42yK3tg%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

I think you can do that by specifying a different id for each of the
different suggestion types you want to include in the request.

"suggest" : {
"id_1" : {
...............//put your suggestor for one field here
},
"id2" : {
.................//put your suggestor for second field here
}
}

-Amit.

On Thu, Mar 6, 2014 at 9:10 AM, Dan Tuffery dan.tuffery@gmail.com wrote:

Thanks Amit. Is there anyway to execute the autocomplete suggest on
multiple fields within the same request?

On Thu, Mar 6, 2014 at 5:03 PM, Amit Soni amitsoni29@gmail.com wrote:

This is another class for fuzzy match: CompletionSuggestionFuzzyBuilder

-Amit.

On Thu, Mar 6, 2014 at 8:56 AM, Dan dan.tuffery@gmail.com wrote:

I found an example in the tests, if anyone else is looking for it and
comes across this post:

SuggestResponse suggestResponse =
client().prepareSuggest(INDEX).addSuggestion(
new
CompletionSuggestionBuilder("testSuggestions").field(FIELD).text("foo").size(10)

On Thursday, March 6, 2014 4:18:16 PM UTC, Dan wrote:

I'm changing our current autocomplete implementation to use the new
autocomplete suggester as below. Is there a Java API available to send the
suggest search request to Elasticsearch?

Elasticsearch Platform — Find real-time answers at scale | Elastic

--
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.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/e0e3fca2-cb22-4653-8f39-7636b2379bdc%40googlegroups.comhttps://groups.google.com/d/msgid/elasticsearch/e0e3fca2-cb22-4653-8f39-7636b2379bdc%40googlegroups.com?utm_medium=email&utm_source=footer
.

For more options, visit https://groups.google.com/groups/opt_out.

--
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.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/CAAOGaQ%2BbMbmfymyXUgbnKkHVE-Fk%2BYfuZc3waCbhgec%3D76b-7Q%40mail.gmail.comhttps://groups.google.com/d/msgid/elasticsearch/CAAOGaQ%2BbMbmfymyXUgbnKkHVE-Fk%2BYfuZc3waCbhgec%3D76b-7Q%40mail.gmail.com?utm_medium=email&utm_source=footer
.

For more options, visit https://groups.google.com/groups/opt_out.

--
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.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/CAEyth3vSxQrXiQe6kTTM9-fbYGD9ojVhGOerG8KZtmB42yK3tg%40mail.gmail.comhttps://groups.google.com/d/msgid/elasticsearch/CAEyth3vSxQrXiQe6kTTM9-fbYGD9ojVhGOerG8KZtmB42yK3tg%40mail.gmail.com?utm_medium=email&utm_source=footer
.

For more options, visit https://groups.google.com/groups/opt_out.

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAAOGaQJxgWzuvr0eEm%2BE-pzwW2P4d9kN19PTUQTwKe6PSqh%2B0A%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

No, that doesn't seem to work.

On Thu, Mar 6, 2014 at 5:29 PM, Amit Soni amitsoni29@gmail.com wrote:

I think you can do that by specifying a different id for each of the
different suggestion types you want to include in the request.

"suggest" : {
"id_1" : {
...............//put your suggestor for one field here
},
"id2" : {
.................//put your suggestor for second field here
}
}

-Amit.

On Thu, Mar 6, 2014 at 9:10 AM, Dan Tuffery dan.tuffery@gmail.com wrote:

Thanks Amit. Is there anyway to execute the autocomplete suggest on
multiple fields within the same request?

On Thu, Mar 6, 2014 at 5:03 PM, Amit Soni amitsoni29@gmail.com wrote:

This is another class for fuzzy match: CompletionSuggestionFuzzyBuilder

-Amit.

On Thu, Mar 6, 2014 at 8:56 AM, Dan dan.tuffery@gmail.com wrote:

I found an example in the tests, if anyone else is looking for it and
comes across this post:

SuggestResponse suggestResponse =
client().prepareSuggest(INDEX).addSuggestion(
new
CompletionSuggestionBuilder("testSuggestions").field(FIELD).text("foo").size(10)

On Thursday, March 6, 2014 4:18:16 PM UTC, Dan wrote:

I'm changing our current autocomplete implementation to use the new
autocomplete suggester as below. Is there a Java API available to send the
suggest search request to Elasticsearch?

Elasticsearch Platform — Find real-time answers at scale | Elastic

--
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.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/e0e3fca2-cb22-4653-8f39-7636b2379bdc%40googlegroups.comhttps://groups.google.com/d/msgid/elasticsearch/e0e3fca2-cb22-4653-8f39-7636b2379bdc%40googlegroups.com?utm_medium=email&utm_source=footer
.

For more options, visit https://groups.google.com/groups/opt_out.

--
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.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/CAAOGaQ%2BbMbmfymyXUgbnKkHVE-Fk%2BYfuZc3waCbhgec%3D76b-7Q%40mail.gmail.comhttps://groups.google.com/d/msgid/elasticsearch/CAAOGaQ%2BbMbmfymyXUgbnKkHVE-Fk%2BYfuZc3waCbhgec%3D76b-7Q%40mail.gmail.com?utm_medium=email&utm_source=footer
.

For more options, visit https://groups.google.com/groups/opt_out.

--
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.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/CAEyth3vSxQrXiQe6kTTM9-fbYGD9ojVhGOerG8KZtmB42yK3tg%40mail.gmail.comhttps://groups.google.com/d/msgid/elasticsearch/CAEyth3vSxQrXiQe6kTTM9-fbYGD9ojVhGOerG8KZtmB42yK3tg%40mail.gmail.com?utm_medium=email&utm_source=footer
.

For more options, visit https://groups.google.com/groups/opt_out.

--
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.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/CAAOGaQJxgWzuvr0eEm%2BE-pzwW2P4d9kN19PTUQTwKe6PSqh%2B0A%40mail.gmail.comhttps://groups.google.com/d/msgid/elasticsearch/CAAOGaQJxgWzuvr0eEm%2BE-pzwW2P4d9kN19PTUQTwKe6PSqh%2B0A%40mail.gmail.com?utm_medium=email&utm_source=footer
.

For more options, visit https://groups.google.com/groups/opt_out.

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAEyth3tyjHnUgGVFsngU2y44O8zxV4BCO2SA6%3DOTdjjekNamEw%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

Hey

just to clarify here: you can configure multiple suggest requests inside a
single one (as Amit suggested), but you cannot have more than one field per
single suggest request.

--Alex

On Thu, Mar 6, 2014 at 6:38 PM, Dan Tuffery dan.tuffery@gmail.com wrote:

No, that doesn't seem to work.

On Thu, Mar 6, 2014 at 5:29 PM, Amit Soni amitsoni29@gmail.com wrote:

I think you can do that by specifying a different id for each of the
different suggestion types you want to include in the request.

"suggest" : {
"id_1" : {
...............//put your suggestor for one field here
},
"id2" : {
.................//put your suggestor for second field here
}
}

-Amit.

On Thu, Mar 6, 2014 at 9:10 AM, Dan Tuffery dan.tuffery@gmail.comwrote:

Thanks Amit. Is there anyway to execute the autocomplete suggest on
multiple fields within the same request?

On Thu, Mar 6, 2014 at 5:03 PM, Amit Soni amitsoni29@gmail.com wrote:

This is another class for fuzzy match: CompletionSuggestionFuzzyBuilder

-Amit.

On Thu, Mar 6, 2014 at 8:56 AM, Dan dan.tuffery@gmail.com wrote:

I found an example in the tests, if anyone else is looking for it and
comes across this post:

SuggestResponse suggestResponse =
client().prepareSuggest(INDEX).addSuggestion(
new
CompletionSuggestionBuilder("testSuggestions").field(FIELD).text("foo").size(10)

On Thursday, March 6, 2014 4:18:16 PM UTC, Dan wrote:

I'm changing our current autocomplete implementation to use the new
autocomplete suggester as below. Is there a Java API available to send the
suggest search request to Elasticsearch?

Elasticsearch Platform — Find real-time answers at scale | Elastic

--
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.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/e0e3fca2-cb22-4653-8f39-7636b2379bdc%40googlegroups.comhttps://groups.google.com/d/msgid/elasticsearch/e0e3fca2-cb22-4653-8f39-7636b2379bdc%40googlegroups.com?utm_medium=email&utm_source=footer
.

For more options, visit https://groups.google.com/groups/opt_out.

--
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.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/CAAOGaQ%2BbMbmfymyXUgbnKkHVE-Fk%2BYfuZc3waCbhgec%3D76b-7Q%40mail.gmail.comhttps://groups.google.com/d/msgid/elasticsearch/CAAOGaQ%2BbMbmfymyXUgbnKkHVE-Fk%2BYfuZc3waCbhgec%3D76b-7Q%40mail.gmail.com?utm_medium=email&utm_source=footer
.

For more options, visit https://groups.google.com/groups/opt_out.

--
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.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/CAEyth3vSxQrXiQe6kTTM9-fbYGD9ojVhGOerG8KZtmB42yK3tg%40mail.gmail.comhttps://groups.google.com/d/msgid/elasticsearch/CAEyth3vSxQrXiQe6kTTM9-fbYGD9ojVhGOerG8KZtmB42yK3tg%40mail.gmail.com?utm_medium=email&utm_source=footer
.

For more options, visit https://groups.google.com/groups/opt_out.

--
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.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/CAAOGaQJxgWzuvr0eEm%2BE-pzwW2P4d9kN19PTUQTwKe6PSqh%2B0A%40mail.gmail.comhttps://groups.google.com/d/msgid/elasticsearch/CAAOGaQJxgWzuvr0eEm%2BE-pzwW2P4d9kN19PTUQTwKe6PSqh%2B0A%40mail.gmail.com?utm_medium=email&utm_source=footer
.

For more options, visit https://groups.google.com/groups/opt_out.

--
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.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/CAEyth3tyjHnUgGVFsngU2y44O8zxV4BCO2SA6%3DOTdjjekNamEw%40mail.gmail.comhttps://groups.google.com/d/msgid/elasticsearch/CAEyth3tyjHnUgGVFsngU2y44O8zxV4BCO2SA6%3DOTdjjekNamEw%40mail.gmail.com?utm_medium=email&utm_source=footer
.

For more options, visit https://groups.google.com/groups/opt_out.

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAGCwEM-79%3Dw7hoDvQj4aLbja4%3DY_Kxrt6Li4-r86rjL%3DYGjjCA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.