Skip to content

Fixed keywords not being split when searching for members

Gijs Hendriksen requested to merge fix/445-split-keywords-in-member-search into master

Closes #455 (closed)

Previous behaviour

When using multiple keywords in a search query for a member, the index view does not split these keywords. Thus, it only shows members with a field (first name, last name, nickname or username) containing all of the keywords.

Steps to reproduce:

  1. Go to https://thalia.nu/members/
  2. Enter multiple keywords that do not belong to the same model field, for example firstname lastname.
  3. Hit the search button.

New behaviour

The keywords are split, and the query is adjusted such that for each of the keywords there is at least one field in the Member model that contains this keyword.

Steps to validate that it works:

  1. Go to https://thalia.nu/members/
  2. Enter multiple keywords that do not belong to the same model field, for example firstname lastname.
  3. Hit the search button.
Edited by Gijs Hendriksen

Merge request reports