Advertisement
Typhoon

Elastic Index Custom Mapping for Dochadzka_Scrape

Jan 30th, 2015
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. curl -XPOST localhost:9200/dochadzka -d '{
  2.     "settings" : {
  3.         "number_of_shards" : 1
  4.         },
  5.         "mappings" : {
  6.             "opendata":{
  7.                 "_timestamp" : {
  8.                     "enabled" : true,
  9.                     "store" : true
  10.                 }
  11.                
  12.             }
  13.             },
  14.             "mappings" : {
  15.                 "opendata" : {
  16.                     "properties" : {
  17.                         "party" : { "type" : "string", "index" : "not_analyzed", "store" : "yes" },
  18.                         "name" : { "type" : "string", "index" : "not_analyzed", "store" : "yes" },
  19.                         "reason" : { "type" : "string", "index" : "not_analyzed", "store" : "yes" },
  20.                         "date" : { "type" : "string", "index" : "not_analyzed", "store" : "yes" }
  21.  
  22.                     }
  23.                     }}
  24.                     }'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement