QuickSearch should search any details rather than primary details only
Overview
QuickSearch currently searches primary details only. However, in all use cases I have encountered, users actually want to search any details (e.g. when searching by email address, see a list of contacts with that primary or non-primary email address).
If in fact there exists a use case where Civi users need to search primary details only, we could add a toggle to the QuickSearch form itself (which affects only that form interaction, and will not have side effects on exports, other users, etc.)
Example use-case
- Use QuickSearch form to search by email, phone, address, etc.
- Observe the autocomplete search results which appear below the QuickSearch box.
Current behaviour
Autocomplete shows results for primary details only.
Proposed behaviour
Autocomplete shows results for both primary and non-primary details.
Comments
In addition, it would be useful if QuickSearch could pass on the "search primary details only" preference to the advanced search page it leads to, so that the autocomplete results match the results obtained by hitting "enter".