Skip to content

Commit

Permalink
OpenConceptLab/ocl_issues#1583 | concept word match on name keyword f…
Browse files Browse the repository at this point in the history
…ield
  • Loading branch information
snyaggarwal committed Jul 18, 2023
1 parent fd577fe commit 3d5e7a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/common/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def get_prefix_criteria(field, search_str, boost):

@staticmethod
def get_match_criteria(field, search_str, boost):
return Q('match', **{field: {'query': search_str, 'boost': boost}})
return Q('match', **{field: {'query': search_str, 'boost': boost, 'auto_generate_synonyms_phrase_query': False, 'operator': 'AND'}})

@staticmethod
def get_wildcard_criteria(field, search_str, boost):
Expand Down
2 changes: 1 addition & 1 deletion core/concepts/documents.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def get_exact_match_attrs():
'id': {
'boost': 40
},
'name': {
'_name': {
'boost': 35
},
'same_as_map_codes': {
Expand Down

0 comments on commit 3d5e7a4

Please sign in to comment.