Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

View file
nameannouncementMapping.json
height250
View file
nameannouncementtypeMapping.json
height250
View file
namecourseMapping.json
height250
View file
namehistoryMapping.json
height250
View file
namelocationMapping.json
height250
View file
namemetricsMapping.json
height250
View file
nameorgMapping.json
height250
View file
nametelemetryMapping.json
height250
View file
nameusercoursesMapping.json
height250
View file
nameuserMapping.json
height250
View file
nameusernotesMapping.json
height250
View file
nameuserprofilevisibilityMapping.json
height250


Problem Statement

How to manage the mapping of indexes?

Solution Approach

The mapping can be stored in database and can be updated and invoked through API. Whenever someone invokes an API for updating mapping, it is first stored in DB and then makes an internal call to Elasticsearch to update mapping.

Table structure

columntypedescription
indextext name of the index, partition key
type textthe type for which the mapping should be applied, primary key
versionintpart of primary key, can be used for auditing or getting current mapping
mappingtextthe json of mapping called
failuretextany failure which occurred while calling update mapping
createdBytextuserId of person who called update mapping API
createdDatetimestampwhen the API was invoked to update mapping