Liking cljdoc? Tell your friends :D

joplin.elasticsearch.database


assign-aliasclj

(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
sourceraw docstring

clientclj

(client {:keys [scheme host port user password] :or {scheme "http"} :as db})
source

clone-indexclj

(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.
sourceraw docstring

create-indexclj

(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.
sourceraw docstring

default-migration-indexclj

source

es-add-migration-idclj

(es-add-migration-id es-client migration-index migration-id)
source

es-get-applied-migrationsclj

(es-get-applied-migrations es-client migration-index)
source

es-remove-migration-idclj

(es-remove-migration-id es-client migration-index migration-id)
source

find-index-namesclj

(find-index-names es-client alias-name)
source

migrate-dataclj

(migrate-data es-client old-index mapping-type new-index)
(migrate-data es-client old-index mapping-type new-index trans-f)
source

migrate-data-nativeclj

(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)
source

migration-document-idclj

source

migration-typeclj

source

native-clientclj

(native-client {:keys [host port native-port cluster] :as db})
source

rollback-indexclj

(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
sourceraw docstring

update-indexclj

(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.
sourceraw docstring

wait-for-readyclj

(wait-for-ready es-native-client shards)
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close