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
        }
      }
    },

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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