Skip to content

Instantly share code, notes, and snippets.

@angelf
Created February 26, 2011 20:19
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 angelf/845575 to your computer and use it in GitHub Desktop.
Save angelf/845575 to your computer and use it in GitHub Desktop.
get a PercolateIndexUnavailable
curl -XPUT localhost:9200/_percolator/documents/myfilter -d '{
"title": "cisco",
"query": {
"query_string": {
"query": "cisco"
}
}
}'
echo
echo "Adding a query fails"
echo
curl -XGET localhost:9200/documents/document/_percolate -d '{
doc: {text: "cisco systems spain"},
query: {term: {title: "cisco"}}
}'
echo
echo "But a vanilla percolate works all right"
echo
curl -XGET localhost:9200/documents/document/_percolate -d '{
doc: {text: "cisco systems spain"}
}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment