"_doc" in elasticsearch 6.0.0

SSG

I was following elasticsearch guide for version 6.0: https://www.elastic.co/guide/en/elasticsearch/reference/master/removal-of-types.html

1] To create mapping

PUT /twitter

{
  "mappings": {
    " **_doc** ": {
      "properties": {
        "type": { "type": "keyword" }, 
        "name": { "type": "text" },
        "user_name": { "type": "keyword" },
        "email": { "type": "keyword" },
        "content": { "type": "text" },
        "tweeted_at": { "type": "date" }
      }
    }
  }
}

2] To create document.

PUT twitter/_doc/user-kimchy

{
  "type": "user", 
  "name": "Shay Banon",
  "user_name": "kimchy",
  "email": "[email protected]"
}

What is "_doc" in 1 and 2 ? considering the fact that types are going away from Elasticsearch 6.0.0

Thanks in advance !!

Val

Until ES 8.x there will still be an explicit mapping type per index, even though only a single type will be allowed. You are free to choose whatever name you want for that single type, though, but it is advised to use the dummy _doc (preferred) or doc type.

Starting with ES 8, types will disappear completely. You can read more about the full schedule planned between ES 5 and 9 to make the removal completely effective.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Returning data that is not in ElasticSearch as 0 in doc_count

Elasticsearch Filter 0 hits

Linux $[ $RANDOM % 6 ] == 0 ]

Why (0-6) is -6 = False?

Elasticsearch : _score always 0 in Groovy script

term query returns 0 results elasticsearch

elasticsearch synonyms analyzer gives 0 results

How to obtain scoring between 0 and 1 with ElasticSearch?

Elasticsearch set default number of replicas to 0

elasticsearch-query receiving 0 records for a query

how to perform query field not equal to 0 in elasticsearch

Scope 0 count terms in aggregation in ElasticSearch

IPv6 loopback address http://0:0:0:0:0:0:0:1 - browser can't connect. Method getRemoteHost()

Boot Error: Emask 0X0 SAct 0X0 SErr 0X0 action 0X6 frozen

How to update a setting on the _doc type using elasticsearch.net/nest 6.x

Angular 6 Auth0 - global not defined

How is foldLeft evaluated in (0 /: (1 to 6))(_+_)?

Angular 6 - Unexpected token in JSON at position 0

lines, where the last value for $6 = 0?

Rails 6 Field Required but will not accept 0 or Null

VB6 Round(x,0) issue

Cannot read property '0' of undefined in angular 6

KalmanFilter(6,2,0) transition matrix

How to fix 'undefined method `get_aliases' for #<Elasticsearch::API::Indices::IndicesClient:0x00007fc31b6ed558>'

result of logical operation ((0x5C0 & 0x3C0) >> 6) in tcl

Capture [A-Z0-9]{6} - but only if it's not \d{6}

What are the disadvantages of ElasticSearch Doc Values

what does _doc represents in elasticsearch?

Analyzing the same search field twice returns 0 results on subfield in ElasticSearch