Re: [go-nuts] Querying ElasticSearch from Go

2016-09-03 Thread Matt Harden
OK so that was wrong. Here's what I found: First, it looks like you can simply send a "GET _search" to the elasticsearch server with the JSON request as the body. See https://www.elastic.co/guide/en/elasticsearch/reference/current/query-filter-context.html. So maybe drop the client and just use ht

Re: [go-nuts] Querying ElasticSearch from Go

2016-09-03 Thread Matt Harden
Maybe you want a QueryStringQuery ? On Sat, Sep 3, 2016 at 3:21 PM David Sofo wrote: > Hi, > > I have a set of ElasticSearch queries in string format already. I don't > have to rewrite the queries. How to query ElasticSearch usin

[go-nuts] Querying ElasticSearch from Go

2016-09-03 Thread David Sofo
Hi, I have a set of ElasticSearch queries in string format already. I don't have to rewrite the queries. How to query ElasticSearch using these strings. A string query can have this form: query := `{ "query":{ "bool": { "should": [ {"match": {"