Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

Scripts

## Updating Elasticsearch

TL;DR When you update the mapping, use Reindex, when you add a mapping, use UpdateMapping

Reindex

On occasion you will need to update the our Elasticsearch mappings. Unfortunately, you need to change the mapping and then reindex the data to apply said change. Read more about the inspiration

$ sbt
> scripts/run Reindex <ES_HOST>

UpdateMapping

When you add a mapping e.g. You add a new field to the image mapping you should add the mapping with this script as we are using strict mappings (you cannot just add things willy nilly).

$ sbt
> scripts/run UpdateMapping <ES_HOST>