Created
February 26, 2011 20:19
-
-
Save angelf/845575 to your computer and use it in GitHub Desktop.
get a PercolateIndexUnavailable
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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