Skip to content

Filter speakers in Parliament UK corpus #2001

@lukavdplas

Description

@lukavdplas

Is your feature request related to a problem? Please describe.
The Talking Empire researchers would like a good way to filter for a specific speaker and then search for keywords in the speech content.

This is not possible because there is no filter for speakers. You can search in the speaker field, but then you can't combine that with a different query in the content.

Describe the solution you'd like

Add a search filter widget for the speaker field. Trivial to add.

The problem with this is:

  • The search filter widget will only show the N most frequent speakers in the results, which may not be reliable.
  • Speaker names may not be one-to-one with speaker IDs. (The data does include speaker IDs, but dropdown with ID values would be awful to use since IDs in this corpus are arbitrary number sequences.)

Hence why the filter wasn't added already. I would recommend that we combine it with at least one the following:

  • Let users activate a speaker (or speaker ID) filter from a document: Open filtered results from document view #729 -> As I mention in that issue, this is pretty easy on a technical level.
  • Allow arbitrary values in the "multiple choice filter" so you can type in a specific value that is not in the top N.

Describe alternatives you've considered

  • Advanced query builder: UI options for advanced queries #1436
  • Make the multiple choice filter more sophisticated so:
    • It can make extra requests to allow searching values / virtual scroll beyond the initial N fetched values.
    • It can combine a pretty/messy field with an ID field. (I.e. use the ID field for the actual filter, but show the pretty values to the user.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementimprovements to existing user functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions