From 9581b3305b3d2efe9a82f76d18d81f7cc4860f0a Mon Sep 17 00:00:00 2001 From: jornh Date: Thu, 2 May 2019 01:28:43 +0200 Subject: [PATCH] ES index written must match reader side (#31) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * ES index written must match reader side Change this line https://github.com/lyft/amundsendatabuilder/blob/v1.0.11/example/scripts/sample_data_loader.py#L177 to match the current hardcoded value in the search service at https://github.com/lyft/amundsensearchlibrary/blob/v1.0.0_4/search_service/config.py#L23. This means it’s backwards compatible with existing search service Docker containers etc. * Bump package version to 1.0.12 --- databuilder/example/scripts/sample_data_loader.py | 2 +- databuilder/setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/databuilder/example/scripts/sample_data_loader.py b/databuilder/example/scripts/sample_data_loader.py index 0d9df76723..17d72837a0 100644 --- a/databuilder/example/scripts/sample_data_loader.py +++ b/databuilder/example/scripts/sample_data_loader.py @@ -174,7 +174,7 @@ def create_es_publisher_sample_job(): # related to mapping type from /databuilder/publisher/elasticsearch_publisher.py#L38 elasticsearch_new_index_key_type = 'table' # alias for Elasticsearch used in amundsensearchlibrary/search_service/config.py as an index - elasticsearch_index_alias = 'tables_alias' + elasticsearch_index_alias = 'table_search_index' job_config = ConfigFactory.from_dict({ 'extractor.search_data.extractor.neo4j.{}'.format(Neo4jExtractor.GRAPH_URL_CONFIG_KEY): neo4j_endpoint, diff --git a/databuilder/setup.py b/databuilder/setup.py index 8f9a7a6aa8..a9b0ab1960 100644 --- a/databuilder/setup.py +++ b/databuilder/setup.py @@ -1,7 +1,7 @@ from setuptools import setup, find_packages -__version__ = '1.0.11' +__version__ = '1.0.12' setup(