New for resilient search. There is a problem writing a search query that returns all matching records in my collection. Below is my record search request
{
"size":"total no of record" // Here i need to get total no of records in collection
"query": {
"match": {
"first_name": "vineeth"
}
}
}
By running this query, I get a maximum of 10 entries, I am sure that there are more than 10 matching entries in my collection. I searched a lot and finally got the size parameter in the request. But in my case, I do not know the total number of entries. I think that providing an unlimited number for a variable size is not good practice, so how to manage this situation please help me solve this problem, thanks
source
share