Skip to content

Nested filter #192

@electrobits

Description

@electrobits

Hi guys,

I really apprieciate the great work you've done so far, but maybe you could help me with one issue, I need to run some queries that rely on nested filters, below is an example. I could not find that feature in the code, maybe I am missing something, but would that be possible for you to add nested filters?

{
    "query": {
        "nested": {
            "path": "attributes",
            "filter": {
                "bool": {
                    "must": [
                        {
                            "term": {
                                "attributes.value": 1
                            }
                        }
                    ],
                    "should": [
                        {
                            "term": {
                                "attributes.name": "shared"
                            }
                        },
                        {
                            "term": {
                                "attributes.name": "recommendation"
                            }
                        }
                    ]
                }
            }
        }
    }
}

Or maybe it is already possible and I am just missing it?

thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions