dantuff
(Dan Tuffery)
May 9, 2013, 8:00pm
1
I need to add suggest queries along with my main query. I'm using the Java
API and the SearchRequestBuilder.
Is there a way to add the suggestion query to the SearchRequestBuilder
query?
--
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 .
For more options, visit https://groups.google.com/groups/opt_out .
dantuff
(Dan Tuffery)
May 9, 2013, 9:00pm
2
I've found the SuggestBuilder class, can anyone shed some light how I can
add the SuggestBuilder object to my query?
Thanks
--
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 .
For more options, visit https://groups.google.com/groups/opt_out .
Ivan
(Ivan Brusic)
May 10, 2013, 2:07am
3
The suggest API is only available in 0.90+. I have never tried it, but
according to the source, you add a SuggestBuilder to a SearchRequestBuilder
via the addSuggestion method:
https://github.com/elasticsearch/elasticsearch/blob/master/src/main/java/org/elasticsearch/action/search/SearchRequestBuilder.java#L662
--
Ivan
On Thu, May 9, 2013 at 2:00 PM, es newbie dan.tuffery@gmail.com wrote:
I've found the SuggestBuilder class, can anyone shed some light how I can
add the SuggestBuilder object to my query?
Thanks
--
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 .
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 .
For more options, visit https://groups.google.com/groups/opt_out .