index、insert、update、bulk
es_client.index(index="news", document=document, refresh=True)
es_client.update(index="news", id=path.id, doc=body.dict(exclude_none=True), refresh=True)
:param refresh:
If ‘true’, Elasticsearch refreshes the affected shards to make this operation visible to search,
if ‘wait_for’ then wait for a refresh to make this operation visible to search,
if ‘false’ do nothing with refreshes.
refresh接受的类型(默认值为false):