I`m trying to get data from ES using the @Query annotation.
I used the following query and got the required result but the number of records fetched is 10
@Query("{"bool":{"must":[{"term":{"attendanceDate": "?0"}}]}} ")
But i need more records to be fetched, and used the size constraint to specify the size using the following query, unfortunately it don't work.
@Query( "{"bool":{"must":[{"term":{"attendanceDate": "?0"}}]}},"from": 0,"size": 50 ")
I'm using ES 2.4.5 and spring framework