I am using this code:
client.prepareSearch("test").addSort("dateUpdated", SortOrder.DESC) .setSearchType(SearchType.DFS_QUERY_AND_FETCH) .setIndices("reach") .setTypes(types) .setQuery(QueryBuilders.queryString(queryString)) .setFrom(0).setSize(2).setExplain(true) .execute() .actionGet()
A client is a remote client. There are 5 general results based on what I have above, I expect only two results. But all 5 are coming back. IF I set size 0, nothing returns (as expected) What am I missing? I feel like I'm misunderstanding something about things from / size. My query string is just "name: *". Any help is much appreciated!
source share