I'm using the search filter as follows:
api/v2/search/tickets?query="(status:2 OR status:3 OR status:4)"
In my test this returns 2 tickets. If I close one ticket and re-run the search it still returns both tickets, even though the status of one is 5 (closed). See below (I've removed the email fields from the results). See the value or status.
If I run the search again after a few minutes then only one records is returned so it looks like it is a caching issue.
"results": t
{
"fr_escalated": false,
"spam": false,
"email_config_id": 35000016792,
"group_id": 35000047658,
"priority": 2,
"requester_id": 35000926513,
"responder_id": null,
"source": 1,
"company_id": null,
"status": 5,
"subject": "Test 2",
"product_id": null,
"id": 164,
"type": null,
"due_by": "2017-11-16T00:09:27Z",
"fr_due_by": "2017-11-12T04:09:27Z",
"is_escalated": false,