prepareSearch(...) returns a SearchRequestBuilder, which itself has a
setTypes(...) method which takes a String vararg as a parameter.
SearchRequestBuilder searchBuilder =
On Thu, Feb 16, 2012 at 7:49 AM, T Vinod Gupta email@example.com wrote:
i want to not only pass the index name but also the type to preparesearch
java api. i couldn't figure out how to do it. can someone help?
i have indexed my documents using a index name, type and id. now i want to
search and restrict the results to a given type.