Skip to content

Instantly share code, notes, and snippets.

Created December 22, 2011 08:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/1509532 to your computer and use it in GitHub Desktop.
Save anonymous/1509532 to your computer and use it in GitHub Desktop.
ElasticSearch Hebrew percolator test
#ElasticSearch version 0.18.6
curl -XPUT 'http://localhost:9200/test'
#{"ok":true,"acknowledged":true}
curl -XPUT 'http://localhost:9200/test/type1/_percolate/' -d'
{"query" : {"term" : {"field1" : "שלום"}}}'
#{"ok":true,"_index":"_percolator","_type":"test","_id":"q1","_version":1}
curl -XPOST 'http://localhost:9200/test/type1/_percolate/' -d'
{"doc" : {"field1" : "שלום עולם"}}'
#{"ok":true,"matches":[]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment