Skip to content

Support multiple filters for the same attribute #377

@JesseDocken

Description

@JesseDocken

I'm working on a new JSON-API application on top of ElasticSearch. So far I've got it to the point where it's able to properly query and return results from the database, however when I try to implement a query like:

filter[age]=gt:18&filter[age]=lt:35

The first filter gets replaced by the second. This isn't ideal and so far I haven't been able to find a way around it. Ideally I'd expect the op.params.filter to look something like:

{
  age: [ "gt:18", "lt:35" ]
}

That would be fairly straightforward to parse through and would make it easy to detect if the queries could be combined into a range operator under the covers, for example.

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