Skip to content

Instantly share code, notes, and snippets.

@wireframe
Created February 17, 2011 17:03
Show Gist options
  • Select an option

  • Save wireframe/832127 to your computer and use it in GitHub Desktop.

Select an option

Save wireframe/832127 to your computer and use it in GitHub Desktop.
curl -XPUT localhost:9200/_percolator/elastic_searchable/myfilter -d '{
query: {
query_string: {
query: "foo"
}
}
}'
curl -XPOST localhost:9200/_percolator/_refresh
curl -XPUT localhost:9200/elastic_searchable/books/1?percolate=* -d '{
title: "foo bar"
}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment