Skip to content

The search endpoint does not mention the list of allowed values for room_events.keys #1173

Open
@babolivier

Description

@babolivier

Link to problem area: https://spec.matrix.org/v1.3/client-server-api/#post_matrixclientv3search

Issue

The documentation for the room_events.keys parameter does not mention a restricted list of keys to use for search, implying (as per my own interpretation) that all keys in an event are searchable. However, since matrix-org/synapse#307 (which predates the spec for this endpoint) Synapse has always restricted this list to ["content.body", "content.name", "content.topic"].

Expected behaviour

The spec should mention that the values for room_events.keys must be included in ["content.body", "content.name", "content.topic"].

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-Client-ServerIssues affecting the CS APIclarificationAn area where the expected behaviour is understood, but the spec could do with being more explicit

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions