We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I really wanted to sort this out on my own but couldn't get it working in last 2 hours so asking for help, I need to create the following query:
{ "query": { "bool": { "should": [ { "bool": { "must": [ { "match": { "description": "head of marketing" } }, { "match": { "has_email": 1 } } ] } }, { "bool": { "must": [ { "match": { "description": "cmo" } }, { "match": { "has_email": 1 } } ] } } ] } } }
this is what I have done, but its not getting the required result:
$search = new Search(); $descriptionMatch = new MatchQuery('description', 'head of marketing'); $emailMatch = new MatchQuery('has_email', 1); $search->addQuery($descriptionMatch, BoolQuery::MUST); $search->addQuery($emailMatch, BoolQuery::MUST); return $search->toArray();
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I really wanted to sort this out on my own but couldn't get it working in last 2 hours so asking for help, I need to create the following query:
this is what I have done, but its not getting the required result:
The text was updated successfully, but these errors were encountered: