Should be roughly like this:
var q = {
query: {
"query_string": {
"query": "blah",
"fields": ["blah"],
"default_operator": "AND"
}
}
};
client.search({
index: 'blah_index',
size: 1,
body: q
})
--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/660d59b7-1446-4fad-8241-4178fe575ad4%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.