### What problem does this PR solve?
The existing
/api/v1/datasets/{dataset_id}/documents/{document_id}/chunks endpoint
fails to accurately return a document's chunk status. Even when a chunk
is explicitly marked as unavailable, the API still returns true.


Co-authored-by: zhoudeyong <zhoudeyong@idr.ai>
tags/v0.19.1
| @@ -483,6 +483,9 @@ class ESConnection(DocStoreConnection): | |||
| if isinstance(v, list): | |||
| m[n] = v | |||
| continue | |||
| if n == "available_int" and isinstance(v, (int, float)): | |||
| m[n] = v | |||
| continue | |||
| if not isinstance(v, str): | |||
| m[n] = str(m[n]) | |||
| # if n.find("tks") > 0: | |||