From 69ea36a61c0e620b124d1d45e6e8ee291f72b3c5 Mon Sep 17 00:00:00 2001 From: Tao Feng Date: Tue, 19 May 2020 11:01:33 -0700 Subject: [PATCH] Update table search index mapping (#262) * Update table search index mapping * update --- databuilder/publisher/elasticsearch_constants.py | 12 ++++++++---- setup.py | 2 +- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/databuilder/publisher/elasticsearch_constants.py b/databuilder/publisher/elasticsearch_constants.py index 1e407ef2ef..8afd814dc8 100644 --- a/databuilder/publisher/elasticsearch_constants.py +++ b/databuilder/publisher/elasticsearch_constants.py @@ -16,6 +16,7 @@ "name": { "type":"text", "analyzer": "simple", + "search_analyzer": "whitespace", "fields": { "raw": { "type": "keyword" @@ -25,6 +26,7 @@ "schema": { "type":"text", "analyzer": "simple", + "search_analyzer": "whitespace", "fields": { "raw": { "type": "keyword" @@ -40,11 +42,12 @@ }, "description": { "type": "text", - "analyzer": "simple" + "analyzer": "simple", + "search_analyzer": "whitespace", }, "column_names": { "type":"text", - "analyzer": "simple", + "analyzer": "whitespace", "fields": { "raw": { "type": "keyword" @@ -53,7 +56,8 @@ }, "column_descriptions": { "type": "text", - "analyzer": "simple" + "analyzer": "simple", + "search_analyzer": "whitespace", }, "tags": { "type": "keyword" @@ -66,7 +70,7 @@ }, "database": { "type": "text", - "analyzer": "simple", + "analyzer": "whitespace", "fields": { "raw": { "type": "keyword" diff --git a/setup.py b/setup.py index 25732679aa..9bc485b3e9 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ from setuptools import setup, find_packages -__version__ = '2.5.14' +__version__ = '2.5.15' requirements_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'requirements.txt') with open(requirements_path) as requirements_file: