Suggestion query using the SearchRequestBuilder

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.

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.

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.