Skip to content

Instantly share code, notes, and snippets.

@VirgileD
VirgileD / default-mapping.json
Created June 28, 2012 11:27
default mapping cuasing endless re'sync
{
"_default_" : {
"date_detection" : false,
"dynamic_templates" : [
{
"geoIndexing" : {
"match" : "smart_typed_location",
"mapping" : {
"type" : "geo_point"
}
@VirgileD
VirgileD / ES count API
Created December 22, 2011 15:36
ElasticSearch Count API returns an error if no query
curl -s -XPUT "http://localhost:9200/elastical-test-mapping/type/1" -d '{
"title": "Hello world",
"body": "Welcome to my stupid blog."
}'
curl -s -XGET "http://localhost:9200/elastical-test-mapping/type/_count"
curl -s -XGET "http://localhost:9200/elastical-test-mapping/type/_count?q=*"