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
Post a Comment