Skip to content

Commit

Permalink
OpenConceptLab/ocl_issues#1583 | Concept search to use text field nam…
Browse files Browse the repository at this point in the history
…e and not keyword field
  • Loading branch information
snyaggarwal committed Aug 21, 2023
1 parent 6d3b9d7 commit 2563688
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 @@ -49,15 +49,15 @@ class Django:

@staticmethod
def get_match_phrase_attrs():
return ['_name', 'external_id']
return ['name', 'external_id']

@staticmethod
def get_exact_match_attrs():
return {
'id': {
'boost': 40
},
'_name': {
'name': {
'boost': 35
},
'same_as_map_codes': {
Expand Down

0 comments on commit 2563688

Please sign in to comment.