Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
curl -XPOST 'http://127.0.0.1:9200/forum/post/_search' -d '{"query": {"filtered": {"filter": {"script": {"params": {"forums": [1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23]}, "script": "forums contains doc[\"forum_pk\"].value"}}, "query": {"query_string": {"query": "forum_pk:2", "default_operator": "AND"}}}}, "explain": true}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment