Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- echo '{
- "template" : "*",
- "mappings" : {
- "_default_" : {
- "bucket": {
- "type": "object",
- "index": "not_analyzed",
- "enabled": false
- }
- }
- }
- }' > testmapping.json
- curl -s -XPUT localhost:9200/_template/testmapping -d @testmapping.json; echo ""
- curl -s -XPUT localhost:9200/testindex; echo ""
- # Error about 'index' being invalid on 'object fields'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement