Skip to content

Commit

Permalink
Remove unreferenced subfields in indices (#3162)
Browse files Browse the repository at this point in the history
  • Loading branch information
dhruvkb authored Oct 25, 2023
1 parent 0987949 commit 3f3376c
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions ingestion_server/ingestion_server/es_mapping.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,23 +66,11 @@ def index_settings(media_type: MediaType):
"created_on": {"type": "date"},
"mature": {"type": "boolean"},
# Keyword fields
"identifier": {
# TODO: Remove subfield when API is updated
"fields": {"keyword": {"type": "keyword"}},
"type": "keyword",
},
"identifier": {"type": "keyword"},
"extension": {"type": "keyword"},
"license": {
# TODO: Remove subfield when API is updated
"fields": {"keyword": {"type": "keyword"}},
"type": "keyword",
},
"license": {"type": "keyword"},
"provider": {"type": "keyword"},
"source": {
# TODO: Remove subfield when API is updated
"fields": {"keyword": {"type": "keyword"}},
"type": "keyword",
},
"source": {"type": "keyword"},
"filetype": {"type": "keyword"},
"category": {"type": "keyword"},
# Text-based fields
Expand Down

0 comments on commit 3f3376c

Please sign in to comment.