Skip to content

Instantly share code, notes, and snippets.

@jippi
Created April 26, 2014 16:09
Show Gist options
  • Select an option

  • Save jippi/11323918 to your computer and use it in GitHub Desktop.

Select an option

Save jippi/11323918 to your computer and use it in GitHub Desktop.
curl -X GET local.bownty.net:9200/bownty_da/deal/_search?pretty -d '{
"query" : {
"wildcard" : { "name.raw": "*forbedret*" }
},
"script_fields": {
"terms" : {
"script": "doc[field].values",
"params": {
"field": "name.stemmed"
}
}
}
}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment