def count_docs_in_index(os_store: OpensearchVectorStore) -> int:
    """Refresh indices and return the count of documents in the index."""
    os_store.client._os_client.indices.refresh(index=os_store.client._index)
    count = os_store.client._os_client.count(index=os_store.client._index)
    return count["count"]
Refresh indices and return the count of documents in the index.
llama-index-integrations/vector_stores/llama-index-vector-stores-opensearch/tests/test_opensearch_client.py