gormanst
(Hobo Joe)
January 30, 2019, 12:55pm
1
Is type, as used below, being removed from elasticsearch?
PUT _template/dogpound_mpds
{
"index_patterns": ["dogpound_mpds*"],
"mappings" : {
"_doc" : {
"dynamic": "true",
"properties": {
"twitter": {"type": "text","fields": {"keyword": {"type": "keyword","ignore_above": 256}}},
"cowboy": {"type": "text","fields": {"keyword": {"type": "keyword","ignore_above": 256}}},
"start": {"type": "date"}
"duration": {"type": "integer"}
}
}
},
"aliases": {
"dogpound_mpds": {}
}
}
warkolm
(Mark Walkom)
January 30, 2019, 12:57pm
2
Your formatting is not the best, can you wrap the code in markdown style backticks?
warkolm
(Mark Walkom)
January 30, 2019, 1:14pm
4
Great, thanks!
The mapping type
is not going anywhere.
The _doc
type above is what is changing.
gormanst
(Hobo Joe)
January 30, 2019, 1:18pm
5
I am trying to prepare for the removal of mapping types.
https://www.elastic.co/guide/en/elasticsearch/reference/current/removal-of-types.html
I thought by using "_doc" I was headed in the right direction?
Can you explain?
warkolm
(Mark Walkom)
January 30, 2019, 1:56pm
7
You are.
By only having one _type
, that is _doc
, when we remove _type
s completely you are already prepared.
gormanst:
don't forget about me?
What do you mean?
gormanst
(Hobo Joe)
January 30, 2019, 2:01pm
8
I am concerned that now I will have trouble with "_doc". I think I still have a fundamental misunderstanding about what it means to have mapping types removed. Your initial response seems to indicate I will have problems because something is changing with "_doc"?
dadoonet
(David Pilato)
January 30, 2019, 3:10pm
10
Read this and specifically the "Also be patient" part.
It's fine to answer on your own thread after 2 or 3 days (not including weekends) if you don't have an answer.
warkolm
(Mark Walkom)
January 30, 2019, 3:28pm
11
In that example you gave you have two "types";
the type
referring to the mapping of a specific field. This is not changing
the _type
referring to the mapping of a document variant
The second one is changing.
gormanst:
still with me?
What do you mean?
system
(system)
Closed
February 27, 2019, 3:28pm
12
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.