Skip to content

Commit

Permalink
Add dashboard index map copied from amundsendatabuilder
Browse files Browse the repository at this point in the history
  • Loading branch information
Wonong committed Sep 24, 2020
1 parent b43a687 commit 40f6299
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 40f6299

Please sign in to comment.