Skip to content

Implement Validation for Non-Queryable Attributes in Filtering #530

@bountx

Description

@bountx

Implement validation to reject filter or search queries that use attributes not defined in the collections list of queryable fields, thus reducing processing time on invalid queries.

Solution proposition

  • Helper script should be introduced to aggregate and maintain a local cache of all queryable attributes across all collections, updating this cache automatically on an hourly basis.

  • When a filter or search request is received, the system will check the requested attributes against this local, up-to-date list. If an attribute is missing from the local cache, the request will be rejected with an error message explicitly stating which attribute is undefined or non-queryable, ensuring faster validation and preventing errors due to stale or incorrect attribute names.

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