Skip to content

Instantly share code, notes, and snippets.

@sebaes
Created March 22, 2011 05:15
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 sebaes/880814 to your computer and use it in GitHub Desktop.
Save sebaes/880814 to your computer and use it in GitHub Desktop.
Search filter in queries and not facets, expanded example from issue 650
curl -XPUT 'localhost:9200/twitter/tweet/1' -d '
{
"message" : "something blue",
"date" : "yesterday",
"tag" : "blue"
}
'
curl -XPUT 'localhost:9200/twitter/tweet/2' -d '
{
"message" : "something green",
"date" : "today",
"tag" : "green"
}
'
curl -XPUT 'localhost:9200/twitter/tweet/3' -d '
{
"message" : "something green",
"date" : "yesterday",
"tag" : "green"
}
'
curl -XPOST 'localhost:9200/_refresh'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment