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:
- Go to https://thalia.nu/members/
- Enter multiple keywords that do not belong to the same model field, for example
firstname lastname
. - 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:
- Go to https://thalia.nu/members/
- Enter multiple keywords that do not belong to the same model field, for example
firstname lastname
. - Hit the
search
button.