score:0

Accepted answer

There is a setFrom(Int) method that I can use. No facets needed.

val queryString = client.get.prepareSearch()
  .setQuery(QueryBuilders.matchQuery(NODE_PATH_TO_SEARCH, query))
  .setFrom(currentPageNumber*MAX_DISPLAYABLE_RESULTS)
  .setSize(MAX_DISPLAYABLE_RESULTS)
queryString.execute().actionGet()

Related Query

More Query from same tag