Skip to content

Instantly share code, notes, and snippets.

@da-mkay
da-mkay / gist:3487909
Created August 27, 2012 12:12
ElasticSearch - filename search using nGram
# Delete previous tests
curl -XDELETE 'http://127.0.0.1:9200/files/?pretty=1'
# Setup
curl -XPUT 'http://127.0.0.1:9200/files/?pretty=1' -d '
{
"settings" : {