Skip to content

Commit

Permalink
Increase weight on table name.raw (#87)
Browse files Browse the repository at this point in the history
* Increase weight on table name.raw

Increase weight on table name.raw so that exact match would appear near top result.

* Update setup.py
  • Loading branch information
jinhyukchang authored Mar 12, 2020
1 parent cbf59e4 commit 5256aa2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions search_service/proxy/elasticsearch.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ def fetch_table_search_results_with_field(self, *,
"multi_match": {
"query": query_term,
"fields": ["display_name^1000",
"name.raw^30",
"name.raw^75",
"name^5",
"schema^3",
"description^3",
Expand Down Expand Up @@ -374,7 +374,7 @@ def fetch_table_search_results(self, *,
"multi_match": {
"query": query_term,
"fields": ["display_name^1000",
"name.raw^30",
"name.raw^75",
"name^5",
"schema^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__ = '2.1.2'
__version__ = '2.1.3'

requirements_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'requirements.txt')
with open(requirements_path) as requirements_file:
Expand Down

0 comments on commit 5256aa2

Please sign in to comment.