Created
February 7, 2012 06:46
-
-
Save Manokrrish/1757759 to your computer and use it in GitHub Desktop.
problem while passing filter to set Percolator
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 http://localhost:9200/_percolator/alerts/alert1?refresh=true -d | |
'{ | |
"query" : { | |
"term" : { "field1" : "value1" } | |
}, | |
"filter" : { | |
"and" : [ | |
{ | |
"term" : { "field1" : "value2"} | |
} | |
] | |
} | |
}' |
kimchy
commented
Feb 7, 2012
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment