Paged search data duplication

(任建平) #1

Elasticsearc version (5.3.0)

The first page of the page is normal, and the second page has the same data as the first page.

How to optimize

( #2

If your page number from 0 start, change your code : setFrom(pageNumber*pageSize)
If 1,setFrom((pageNumber-1)*pageSize)

(David Pilato) #3

Please don't post images of text as they are hardly readable and not searchable.

Instead paste the text and format it with </> icon. Check the preview window.

(任建平) #4

Thank you. I noticed this problem yesterday and changed it, but it is not helpful for the second page or even more pages to appear in the data.

(system) #5

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.