Created
October 24, 2013 15:17
-
-
Save piavlo/7139097 to your computer and use it in GitHub Desktop.
Adding dynamic mapping to a "extra" key/value container blob
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -XPUT localhost:9200/apache-accesslog-2013.10.24/apache-accesslog/_mapping -d '{ | |
"apache-accesslog": { | |
"properties":{ | |
"@fields": { | |
"properties": { | |
"extra" : { | |
"type" : "object", | |
"dynamic" : "true", | |
"include_in_all" : true | |
} | |
} | |
} | |
} | |
} | |
}' | |
curl -XPUT localhost:9200/apache-accesslog-2013.10.24/_default_/_mapping -d '{ | |
"_default_": { | |
"properties":{ | |
"@fields": { | |
"properties": { | |
"extra" : { | |
"type" : "object", | |
"dynamic" : "true", | |
"include_in_all" : true | |
} | |
} | |
} | |
} | |
} | |
}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment