Skip to content

Error check parameterized search arguments against OpenSearch mappings #644

@kburke

Description

@kburke

Parameterized searches allow exact match attribute values to be specified as GET parameters, but the initial implementation simply passed them all to OpenSearch in a QDSL query. This can easily result in "zero documents" returned if a specified parameter is not an exact match to an OpenSearch attribute.

search-api's /attribute-values endpoint already works with OpenSearch's _mappings call to identify keywords as part of its task. Extend or re-use this capability to verify user input to /param-search requests.

Metadata

Metadata

Assignees

No one assigned

    Labels

    PPitt dev team

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions