Configuration¶
Invenio module for information retrieval.
-
invenio_index_migrator.config.
INDEX_MIGRATOR_RECIPES
= {}¶ Index sync job definitions.
Example:
INDEX_MIGRATOR_RECIPES = dict( records=dict( cls='invenio_index_migrator.api.Migration', params=dict( strategy='cross_cluster_strategy', src_es_client=dict( prefix='', version=2, params=dict( host='es2', port=9200, use_ssl=True, http_auth='user:pass', url_prefix='on-demand', ), ), jobs=dict( records_simple_reindex=dict( cls='invenio_index_migrator.api.ReindexJob', pid_type='recid', index='records-record-v1.0.0', rollover_threshold=10, reindex_params=dict( script=dict( source="if (ctx._source.foo == 'bar') {...}", lang='painless' ), source=dict( sort=dict( date='desc' ) ), dest=dict( op_type='create' ), ), ) ) ) ) )