Can anybody have a look on my post.
On Saturday, June 15, 2013 1:46:40 PM UTC+5, Sardar Waqas Ahmed wrote:
I am unable to get fields using Elastic Search. I have following query
for searching and needs all documents along with all fields but my Search
Hits is returning empty fields in each Search Hits. Can anyone guide me
where i am wrong. "QueryBuilder qb =
QueryBuilders.queryString(searchSourceBuilder.toString());"
SearchRequestBuilder request = client.prepareSearch() .setIndices(index)
.setTypes(type) .setQuery(qb) .setFrom(0)
.setSearchType(SearchType.QUERY_AND_FETCH) .setSize(60) .setExplain(true);SearchResponse response = request.execute().actionGet();
Now my response has all searchhits but their fields are empty.
Thanks in advance
--
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.