(assign-alias es-client alias-name new-index-name & [old-index-name])
Add an index to an alias, optionally taking an old index name to be remove from the alias
Add an index to an alias, optionally taking an old index name to be remove from the alias
(clone-index es-client source-index-alias target-index-alias & updates)
Create a new index with settings and mappings copied from source index, with optional updates to mappings or settings.
Use when you need to change a setting that affects the way existing data has been indexed.
To move the data as well, use migrate-data.
Create a new index with settings and mappings copied from source index, with optional updates to mappings or settings. Use when you need to change a setting that affects the way existing data has been indexed. To move the data as well, use migrate-data.
(create-index es-client alias-name & opts)
Create an index with the specified options. Only the alias name is specified, the actual index name is auto-generated to avoid conflicts. Old and new index names returned so user can perform data migration.
Create an index with the specified options. Only the alias name is specified, the actual index name is auto-generated to avoid conflicts. Old and new index names returned so user can perform data migration.
(migrate-data es-client old-index mapping-type new-index)
(migrate-data es-client old-index mapping-type new-index trans-f)
(migrate-data-native es-client
es-native-client
old-index
mapping-type
new-index)
(migrate-data-native es-client
es-native-client
old-index
mapping-type
new-index
trans-f)
(rollback-index es-client alias-name)
Rolls back an index (i.e. points the alias at the previous version of the index, then drops the most recent index). If no previous index exists the current index and the alias are both deleted
Rolls back an index (i.e. points the alias at the previous version of the index, then drops the most recent index). If no previous index exists the current index and the alias are both deleted
(update-index es-client alias-name & updates)
Update the mappings and settings of an existing index in place.
You can change settings in a fairly straightforward manner.
Mappings can also be changed, e.g. to add mappings for new fields. Care must be taken when updating mappings of existing fields - see the ES documentation - but you may well get unexpected behaviour. You can set :ignore-conflicts? to true if you know it is safe to do so.
If you are making non-compatible changes to settings or mappings you should not use this function - you will need to use clone-index with your mapping updates and then migrate-data to copy the data into it.
Update the mappings and settings of an existing index in place. You can change settings in a fairly straightforward manner. Mappings can also be changed, e.g. to add mappings for new fields. Care must be taken when updating mappings of existing fields - see the ES documentation - but you may well get unexpected behaviour. You can set :ignore-conflicts? to true if you know it is safe to do so. If you are making non-compatible changes to settings or mappings you should not use this function - you will need to use clone-index with your mapping updates and then migrate-data to copy the data into it.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close