Skip to content

How to use for nested query? #52

@sridharkalaibala

Description

@sridharkalaibala

I have query like following...

{
"nested" : {
"path" : "features",
"query" : {
"bool": {
"should": [
{ "match": { "features.Brand": "Louis Philippe" }},
{ "match": { "features.Brand": "Allen Solly" }},
{ "match": { "features.Occasion": "Casual" }}

                                      ]
                                    }
                            }
                        }

                    }     

following php code it not working...

$this->searchParams['body']['query']['bool']['should'][]['match']['features.Brand'] = $value;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions