Skip to content

Metrics flags decide user intent #2598

Description

@Hazel-Datastax

Current behavior

Why fix it

  • The new {"$lexical": "..."} parsing must remember to set the LEXICAL flag, which is easy to miss because it looks metrics-only. If it doesn't, a collection without a lexical index silently returns empty results instead of an error.
  • Anyone changing metrics tags could change behavior by accident.
  • {} is about to become the filter leg, while {"$hybrid": ""} must stay an error. The two must be told apart reliably, not by a metrics flag.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

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