Skip to content

[Core] Add support for Nested Conditions Filters via AndCondition and OrCondition #317

@alexander-schranz

Description

@alexander-schranz

It would be great if we could also possibility to have complex filters which are combined via OrCondition and also have there again nested AndCondition inside.

The condition signature could looke like this:

class OrCondition {
    public readonly array $conditions;
    
    public function __construct(...$conditions)
    {
        $this->conditions = $conditions;
    }
}

class AndCondition {
    public readonly array $conditions;
    
    public function __construct(...$conditions)
    {
        $this->conditions = $conditions;
    }
}

The queries in the specific ...Searcher classes will get more complex. We would require to add some Recursive functionality and before implement such feature we require a research if this can even be achieved by all currently supported search engines.

Metadata

Metadata

Assignees

No one assigned

    Labels

    SEAL CoreSeal Core related issuefeaturesNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions