Skip to content

Commit

Permalink
fix: make column names searchable by lowercase (#85)
Browse files Browse the repository at this point in the history
* fix: make column names search case insensitive

Signed-off-by: tianru zhou <[email protected]>

* replace tabs with spaces

Signed-off-by: tianru zhou <[email protected]>

* update version number

Signed-off-by: tianru zhou <[email protected]>

Co-authored-by: tianru zhou <[email protected]>
  • Loading branch information
tianru zhou and tianru zhou authored Jan 26, 2021
1 parent 25622d2 commit 0ead455
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions amundsen_common/models/index_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,16 @@
TABLE_INDEX_MAP = textwrap.dedent(
"""
{
"settings": {
"analysis": {
"normalizer": {
"column_names_normalizer": {
"type": "custom",
"filter": ["lowercase"]
}
}
}
},
"mappings":{
"table":{
"properties": {
Expand Down Expand Up @@ -51,6 +61,7 @@
"fields": {
"raw": {
"type": "keyword"
"normalizer": "column_names_normalizer"
}
}
},
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setup(
name='amundsen-common',
version='0.5.9',
version='0.5.10',
description='Common code library for Amundsen',
long_description=open('README.md').read(),
long_description_content_type='text/markdown',
Expand Down

0 comments on commit 0ead455

Please sign in to comment.