Hi,
I tried to setup explicit mapping by path:
PUT x
{
"settings": {
"number_of_shards": 1,
"number_of_replicas": 0
},
"mappings": {
"relevance": {
"dynamic_templates": [
{
"relevance": {
"path_match": "*.relevance",
"mapping": {
"type": "text"
}
}
}
]
}
}
}
But no success:
PUT x/x/0
{
"name": "X",
"metrics" : {
"relevance" : 0
}
}
GET /x/_mapping
{
"x": {
"mappings": {
"relevance": {
"dynamic_templates": [
{
"relevance": {
"path_match": "*.relevance",
"mapping": {
"type": "text"
}
}
}
]
},
"x": {
"properties": {
"metrics": {
"properties": {
"relevance": {
"type": "long"
}
}
},
"name": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
}
}
}
}
}
}
Som why I see relevance field as long?