Skip to content

FAL-242 Use raw values for filters and aggregations

Ghost User requested to merge samuel/fix-filters into master

All these fields must be filtered on exact values (they are chosen from a list of available values, rather than a free form input). The indexes for these fields are already using the non_analyzed option, but we also need to use the .raw postfix on the field names here.

This fixes aggregations and filters from being broken when there are values containing spaces or other non-alpha characters.

Test instructions:

  • add metadata (roles, skills, tags, content types) to courses in the backend admin, where each value contains spaces and/or special characters
  • from the frontend ( https://gitlab.com/opencraft/dev/frontend-app-course-search/ ), do some searches and filtering
  • verify that each metadata value is correctly displayed in the dropdown/select/suggestions, and that filtering on each returns the expected courses

Note: this can be tested in parallel with frontend-app-course-search!6 (merged)

Reviewers:

Edited by Ghost User

Merge request reports