So far I can find all docs where field_a == val1. But I can't figure out
how to add the second condition.
I've been trying this with the elasticsearch php library.
$postParams = [];
> $postParams['index'] = 'myindex';
> $postParams['type'] = 'mytype';
> $postParams['body'] = '{
> "query" : {
> "match" : {
> "status" : {"query" => "unread", "operator" : "and" },
> "priority" : {"query" => 5, "operator" : "and" }
> }
> }
> }';
> $results = $esclient->search($postParams);
>
I've also tried:
> $postParams['body'] = '{
> "query" : {
> "match" : {
> "status" : {"query" => "unread", "operator" : "and" }
> },
> "match" : {
> "priority" : {"query" => 5, "operator" : "and" }
> }
> }
> }';
>
And a bunch of other ways that I didn't document.
So, what am I missing?
--
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/3c6ad98b-dbfe-42b0-bddf-4a47e0aec368%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.