Skip to content

1165 - Make displayname text-searchable#84

Merged
braydencstratusadv merged 2 commits intodev/2.0.xfrom
brf/feat/1165_make_displayname_string_searchable
Mar 1, 2026
Merged

1165 - Make displayname text-searchable#84
braydencstratusadv merged 2 commits intodev/2.0.xfrom
brf/feat/1165_make_displayname_string_searchable

Conversation

@bferguso
Copy link
Collaborator

@bferguso bferguso commented Feb 26, 2026

By default the displayname descriptor is only a search term (ie - exact match). To allow for it to be partially matched it needs to also be a text-type ES search value.

This PR adds a standard ES modifier class to make displayname values text-searchable (not just term searchable).

The class needs to be added to the ES_MAPPING_MODIFIER_CLASSES list in the projects's settings.py to be enabled - eg:

ES_MAPPING_MODIFIER_CLASSES = [
...
    "bcgov_arches_common.search.displayname_es_values.DisplayDescriptorSearchValue",
]

@braydencstratusadv braydencstratusadv merged commit 193f842 into dev/2.0.x Mar 1, 2026
4 of 5 checks passed
@braydencstratusadv braydencstratusadv deleted the brf/feat/1165_make_displayname_string_searchable branch March 1, 2026 17:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants