Skip to content

Instantly share code, notes, and snippets.

@selcukusta
Last active August 7, 2017 19:03
Show Gist options
  • Select an option

  • Save selcukusta/7b4b11a3471f121c3aa565d91a0071fc to your computer and use it in GitHub Desktop.

Select an option

Save selcukusta/7b4b11a3471f121c3aa565d91a0071fc to your computer and use it in GitHub Desktop.
curl -X PUT \
http://localhost:9200/career_sample_index \
-H 'cache-control: no-cache' \
-H 'content-type: application/json' \
-d '{
"settings": {
"number_of_shards": 1,
"number_of_replicas": 0,
"analysis": {
"analyzer": {
"default": {
"filter": [
"lowercase",
"asciifolding",
"word_delimiter"
],
"tokenizer": "standard"
}
}
}
},
"mappings": {
"sample_type": {
"properties": {
"CompanyName": {
"type": "keyword"
},
"Position": {
"type": "string",
"analyzer": "default"
},
"Salary": {
"type": "double"
},
"Servicing": {
"type": "boolean"
},
"Location": {
"type": "geo_point"
}
}
}
}
}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment