Use request data for query string (GET request )

Many documents in elastic search referes below format where it shows GET request with JSON in body which could be feasible only in POST, but not with GET.
My concern is, how to convert/use below JSON body as query String to use it with GET as shown in the doc across all the query example.
GET /_search
"query" : {
"match": { "content": "kimchy" }
"highlight" : {
"fields" : {
"content" : {}

I see some examples like q=(content:"kimchy") or XGET with curl.
Please help me either convert those body text to queryParam so I can check it in any HTTP client. e.g. Browser/psotman etc.


Use the body. QueryDSL is much more powerful.

You can use both GET and POST verbs.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.