Skip to content

Instantly share code, notes, and snippets.

Created Jan 3, 2013
Embed
What would you like to do?
SearchRequestBuilder search = client.prepareSearch(index)
.setTypes("type")
.setSearchType(SearchType.QUERY_AND_FETCH)
.setTimeout(TimeValue.timeValueMillis(2000))
.addFields("id_user", "url_crc32", "stats_nb", "type")
.setFrom(mainQuery.getOffset())
.setSize(mainQuery.getCount());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment