You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If some wants all strings in an index to default to not_analyzed, you can do that via the dynamic template settings:
curl -XPUT "http://localhost:9200/index" -d'
{
"mappings": {
"_default_": {
"dynamic_templates": [
{
"test": {
"match_mapping_type": "string",
"match": "*", // <- not needed when we have 'match_mapping_type'
"mapping": {
"index": "not_analyzed"
}
}
}
]
}
}
}'
However, if you remove the "match":"*", you get the following error:
{
"error": "MapperParsingException[mapping [_default_]]; nested: MapperParsingException[template must have match or path_match set]; ",
"status": 400
}
A minor issue but if one specifies match_mapping_type, we can default match to *
The text was updated successfully, but these errors were encountered:
If some wants all strings in an index to default to
not_analyzed
, you can do that via the dynamic template settings:However, if you remove the
"match":"*"
, you get the following error:A minor issue but if one specifies
match_mapping_type
, we can defaultmatch
to*
The text was updated successfully, but these errors were encountered: