Elasticsearch Get All data which has specified value for some of the field

Hello,

I have a query which gets data with project_id=1 and project_user_id=1:

GET /tweet_user_id_index/_search
{
  "query": {
    "bool": {
      "should": [
        {
          "term": {
            "project_id": {
              "value": 1
            }
          }
        },
        {
          "term": {
            "project_user_id": {
              "value": 1
            }
          }
        }
      ]
    }
  }
}

But this does not give all results. It returns some of them. How can I get all the data?

You will want to try and use the search_after parameter and paginate through all the records.

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