Skip to content

Commit

Permalink
fix: Add dashboard index map copied from amundsendatabuilder (#65)
Browse files Browse the repository at this point in the history
Signed-off-by: Wonyeong Choi <ciwnyg0815@gmail.com>
  • Loading branch information
Wonong authored Sep 25, 2020
1 parent b43a687 commit 551834b
Showing 1 changed file with 77 additions and 0 deletions.
77 changes: 77 additions & 0 deletions amundsen_common/models/index_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,83 @@
"""
)

DASHBOARD_ELASTICSEARCH_INDEX_MAPPING = textwrap.dedent(
"""
{
"settings": {
"analysis": {
"normalizer": {
"lowercase_normalizer": {
"type": "custom",
"char_filter": [],
"filter": ["lowercase", "asciifolding"]
}
}
}
},
"mappings":{
"dashboard":{
"properties": {
"group_name": {
"type":"text",
"analyzer": "simple",
"fields": {
"raw": {
"type": "keyword",
"normalizer": "lowercase_normalizer"
}
}
},
"name": {
"type":"text",
"analyzer": "simple",
"fields": {
"raw": {
"type": "keyword",
"normalizer": "lowercase_normalizer"
}
}
},
"description": {
"type":"text",
"analyzer": "simple",
"fields": {
"raw": {
"type": "keyword"
}
}
},
"group_description": {
"type":"text",
"analyzer": "simple",
"fields": {
"raw": {
"type": "keyword"
}
}
},
"query_names": {
"type":"text",
"analyzer": "simple",
"fields": {
"raw": {
"type": "keyword"
}
}
},
"tags": {
"type": "keyword"
},
"badges": {
"type": "keyword"
}
}
}
}
}
"""
)

USER_INDEX_MAP = textwrap.dedent("""
{
"mappings":{
Expand Down

0 comments on commit 551834b

Please sign in to comment.