Skip to content

Possible redundant extra date filter clause in search route. #75

Description

@ptberry

Currently at:

https://github.com/wavefarm/api/blob/dev/routes/search.js#L47

Search was not behaving as expected for types with a single "date" field. Adding an additional date range filter that uses just "date" instead of "date.sort" seems to address the issue, but one or the other of these is probably not necessary.

    {
      range: {
        date: {
          gte: params.date,
          lte: params.date
        }
      }
    },
    {
      range: {
        "date.sort": {
          gte: params.date,
          lte: params.date
        }
      }
    },

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions