what does _doc represents in elasticsearch?

后端 未结 3 2068
鱼传尺愫
鱼传尺愫 2020-12-25 13:20

I am still trying to figure out what does _doc represents in elasticsearch? From the documentation, two places I could find it\'s usage are:

  1. While in sortin

3条回答
  •  爱一瞬间的悲伤
    2020-12-25 13:43

    From ElasticSearch 8.x version, only _doc is supported and it is just an endpoint name, not a document type.

    In 7.0, _doc represents the endpoint name instead of the document type. The _doc component is a permanent part of the path for the document index, get, and delete APIs going forward, and will not be removed in 8.0.

    Elasticsearch 8.x Specifying types in requests is no longer supported. The include_type_name parameter is removed.

    https://www.elastic.co/guide/en/elasticsearch/reference/current/removal-of-types.html

提交回复
热议问题