Elasticsearch different result when try get all data

I have the two methods:





the first method is to download all of the records, the other retrieves records with pagination. He appeared to me to issue this type that when I send the request to the Financial Controller:



I get in response to the result that different amounts of records. Well searchByIndexParams method returns, whereas a wrong method findAllByIndexParams. It looks as if the record is doubled.

Number of records with search method returns total = 114
Number of records findAll method returns total = 228

I do not know what the cause thi. I ask you for help.