HI All,

If I send a simple query to Elastic using the following code construct, in the response back I obtain my expected results:

    webaddress = "http://localhost:9200/" + index + "/_search?q='hello world'"

    set xml = server.Createobject("MSXML2.ServerXMLHTTP")

    xml.Open "GET", webaddress ,False

    xml.setRequestHeader "Authorization", "Basic " & Base64Encode("elastic:elastic123")


Now if I want to send a much more complex query such that It's not practical or possibly even possible to place the query on a single 'q' parameter as above. i.e.

the query:

    get myindex/_search
        "query":{"match": {"headline": "overseas territory"},
                 "match" : {"bodytext": "british territory"}

So I would build this up into a variable. lets call it mySearch

Then my webaddress becomes :
`webaddress = "http://localhost:9200/" + index + "/_search"`

and xml.send becomes :

`xml.Send mySearch`

mySearch gets ignored and I receive back a default first 10 records from the variable webaddress.

How should I pass my complex search so that it is recognised. I dont have the luxury of curl