Skip to content

Instantly share code, notes, and snippets.

View AnSavvides's full-sized avatar

Andreas Savvides AnSavvides

View GitHub Profile
@AnSavvides
AnSavvides / gist:4177014
Created November 30, 2012 17:02 — forked from markbirbeck/gist:1684506
[ElasticSearch] Insert 6 records and query for a single record with facets: Failure when the number of records is greater than the shard size
# Create an index:
#
curl -XDELETE 'http://127.0.0.1:9200/articles'
curl -XPUT 'http://127.0.0.1:9200/articles'
# Insert the action mapping, as a child of articles:
#
curl -XPUT 'http://127.0.0.1:9200/articles/article/_mapping' -d '
{
"article": {