Skip to content

JSON request data support#11

Open
sbuckpesch wants to merge 1 commit into
gonzalo123:masterfrom
sbuckpesch:patch-6
Open

JSON request data support#11
sbuckpesch wants to merge 1 commit into
gonzalo123:masterfrom
sbuckpesch:patch-6

Conversation

@sbuckpesch

Copy link
Copy Markdown
Contributor

Support for POSTing JSON data and query parameters. E.g.

POST /_all/_search?search_type=count HTTP/1.1
Host: localhost:9200
Content-Type: application/json;charset=UTF-8

{"facets":{"1":{"date_histogram":{"field":"@timestamp","interval":"1h"},"global":true,"facet_filter"
:{"fquery":{"query":{"filtered":{"query":{"query_string":{"query":"action:user_app_started"}},"filter"
:{"bool":{"must":[{"range":{"@timestamp":{"from":1429281606743,"to":1429886406743}}}]}}}}}}},"2":{"date_histogram"
:{"field":"@timestamp","interval":"1h"},"global":true,"facet_filter":{"fquery":{"query":{"filtered":
{"query":{"query_string":{"query":"action:user_door_open"}},"filter":{"bool":{"must":[{"range":{"@timestamp"
:{"from":1429281606744,"to":1429886406744}}}]}}}}}}}},"size":0}

Support for POSTing JSON data and query parameters. E.g. 

POST /_all/_search?search_type=count HTTP/1.1
Host: localhost:9200
Content-Type: application/json;charset=UTF-8

{"facets":{"1":{"date_histogram":{"field":"@timestamp","interval":"1h"},"global":true,"facet_filter"
:{"fquery":{"query":{"filtered":{"query":{"query_string":{"query":"action:user_app_started"}},"filter"
:{"bool":{"must":[{"range":{"@timestamp":{"from":1429281606743,"to":1429886406743}}}]}}}}}}},"2":{"date_histogram"
:{"field":"@timestamp","interval":"1h"},"global":true,"facet_filter":{"fquery":{"query":{"filtered":
{"query":{"query_string":{"query":"action:user_door_open"}},"filter":{"bool":{"must":[{"range":{"@timestamp"
:{"from":1429281606744,"to":1429886406744}}}]}}}}}}}},"size":0}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant