elasticsearch - elastic4s build query from JSON source -


is there way build query in elastic4s json string?

for example, like:

client.execute { "{ \"query\": ..., \"aggs\": ..., ... }" } 

it doesn't support raw query in sense of passing string client.execute. because execute method wraps java client, , java client provides seperate methods per request type.

but can pass in raw query string, like:

search in "*" types("users", "tweets") limit 5 rawquery {  +  """{ "prefix": { "bands": { "prefix": "coldplay", "boost": 5.0, "rewrite": "yes" } } }""" 

Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -