From 0fc85e76f16882cc4607d0c3b76d1e8c545b9e8b Mon Sep 17 00:00:00 2001 From: Tao Feng Date: Fri, 29 May 2020 17:05:32 -0700 Subject: [PATCH] fix: revert default search mapping change (#276) * Revert "Fix ES mapping typo (#267)" This reverts commit 5dca1c24f8c9fc06fdcdd36198ad234ad8a672e4. * Revert "Update table search index mapping (#262)" This reverts commit 69ea36a61c0e620b124d1d45e6e8ee291f72b3c5. * fix: revert default search mapping change --- databuilder/publisher/elasticsearch_constants.py | 12 ++++-------- setup.py | 2 +- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/databuilder/publisher/elasticsearch_constants.py b/databuilder/publisher/elasticsearch_constants.py index 9b61ff062..1e407ef2e 100644 --- a/databuilder/publisher/elasticsearch_constants.py +++ b/databuilder/publisher/elasticsearch_constants.py @@ -16,7 +16,6 @@ "name": { "type":"text", "analyzer": "simple", - "search_analyzer": "whitespace", "fields": { "raw": { "type": "keyword" @@ -26,7 +25,6 @@ "schema": { "type":"text", "analyzer": "simple", - "search_analyzer": "whitespace", "fields": { "raw": { "type": "keyword" @@ -42,12 +40,11 @@ }, "description": { "type": "text", - "analyzer": "simple", - "search_analyzer": "whitespace" + "analyzer": "simple" }, "column_names": { "type":"text", - "analyzer": "whitespace", + "analyzer": "simple", "fields": { "raw": { "type": "keyword" @@ -56,8 +53,7 @@ }, "column_descriptions": { "type": "text", - "analyzer": "simple", - "search_analyzer": "whitespace" + "analyzer": "simple" }, "tags": { "type": "keyword" @@ -70,7 +66,7 @@ }, "database": { "type": "text", - "analyzer": "whitespace", + "analyzer": "simple", "fields": { "raw": { "type": "keyword" diff --git a/setup.py b/setup.py index 1d3e37e34..c14502e04 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ from setuptools import setup, find_packages -__version__ = '2.5.18' +__version__ = '2.5.19' requirements_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'requirements.txt') with open(requirements_path) as requirements_file: