Skip to content

Commit

Permalink
Boost score on exact match against display name. (#82)
Browse files Browse the repository at this point in the history
* [AMD-1157] Boost exact match of display_name on table

* Update
  • Loading branch information
jinhyukchang authored Jan 29, 2020
1 parent 07e136f commit c9b6a08
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions search_service/proxy/elasticsearch.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,8 @@ def fetch_table_search_results_with_field(self, *,
"query": {
"multi_match": {
"query": query_term,
"fields": ["name.raw^30",
"fields": ["display_name^1000",
"name.raw^30",
"name^5",
"schema_name^3",
"description^3",
Expand Down Expand Up @@ -355,7 +356,8 @@ def fetch_table_search_results(self, *,
"query": {
"multi_match": {
"query": query_term,
"fields": ["name.raw^30",
"fields": ["display_name^1000",
"name.raw^30",
"name^5",
"schema_name^3",
"description^3",
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from setuptools import setup, find_packages

__version__ = '1.4.3'
__version__ = '1.4.4'


requirements_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'requirements.txt')
Expand Down

0 comments on commit c9b6a08

Please sign in to comment.