Last active
August 29, 2015 14:08
-
-
Save alexndr79/760314b8b5f49157a839 to your computer and use it in GitHub Desktop.
Percolation with terms look up
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
POST /filter/filter/1 | |
{"str":["1","2","3"]} | |
POST /test/.percolator/1 | |
{"query":{"filtered":{"filter":{"and":{"filters":[{"terms":{"myfield":{"index":"filter","type":"filter","id":"1","path":"str", "cache":"false"}}}]}}}}} | |
POST /test/test/_percolate | |
{"doc": {"myfield": "1"}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment