Skip to content

Commit

Permalink
OpenConceptLab/ocl_issues#1583 | Concept Index | synonyms not lowercase
Browse files Browse the repository at this point in the history
  • Loading branch information
snyaggarwal committed Jul 27, 2023
1 parent c8ba1d2 commit db05b5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/concepts/documents.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def get_boostable_search_attrs():
'synonyms': {
'boost': 0.3,
'wildcard': True,
'lower': True
'lower': False
},
'same_as_map_codes': {
'boost': 0.2,
Expand Down Expand Up @@ -132,7 +132,7 @@ def prepare_other_map_codes(instance):
@staticmethod
def prepare_synonyms(instance):
names = instance.names.exclude(name=instance.display_name)
return list(map(lambda x: x.lower(), names.filter(name__isnull=False).values_list('name', flat=True)))
return list(set(names.filter(name__isnull=False).values_list('name', flat=True)))

@staticmethod
def prepare_source_version(instance):
Expand Down

0 comments on commit db05b5e

Please sign in to comment.