Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mapping: Using _default_ mapping type with _source excludes (or array based config) can cause the array to grow indefinitely #2317

Closed
kimchy opened this issue Oct 12, 2012 · 0 comments

Comments

@kimchy
Copy link
Member

kimchy commented Oct 12, 2012

Here is an example for mapping, where if new fields are being introduced, it causes the excludes array in _source to keep on growing with the same value.

curl -XPUT localhost:9200/test -d '{
"mappings" : {
 "_default_" : {
     "date_detection" : false,
     "_source" : { "excludes" : ["*smart_typed*"] },
     "dynamic_templates" : [
       {
       "numberIndexing":{
         "match" :"smart_typed_number_*",
         "mapping":{
           "type":"double"
         }
       }
     },
     {
       "geoIndexing" : {
         "match" : "smart_typed_location",
         "mapping" : {
           "type" : "geo_point"
         }
       }
     },
     {
       "exactString" : {
         "match" : "*",
         "match_mapping_type" : "string",
         "mapping" : {
           "type" : "multi_field",
           "fields" : {
             "{name}" : {"type": "string", "index" : "analyzed"},
             "exact" : {"type": "string", "index" : "not_analyzed"}
           }
         }
       }
     }
     ]
 }
}
}'
@kimchy kimchy closed this as completed in 384286d Oct 12, 2012
kimchy added a commit that referenced this issue Oct 12, 2012
… based config) can cause the array to grow indefinitely

closes #2317
mute pushed a commit to mute/elasticsearch that referenced this issue Jul 29, 2015
… based config) can cause the array to grow indefinitely

closes elastic#2317
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant