Skip to content

Commit 69ea36a

Browse files
authored
Update table search index mapping (#262)
* Update table search index mapping * update
1 parent edbb208 commit 69ea36a

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

databuilder/publisher/elasticsearch_constants.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"name": {
1717
"type":"text",
1818
"analyzer": "simple",
19+
"search_analyzer": "whitespace",
1920
"fields": {
2021
"raw": {
2122
"type": "keyword"
@@ -25,6 +26,7 @@
2526
"schema": {
2627
"type":"text",
2728
"analyzer": "simple",
29+
"search_analyzer": "whitespace",
2830
"fields": {
2931
"raw": {
3032
"type": "keyword"
@@ -40,11 +42,12 @@
4042
},
4143
"description": {
4244
"type": "text",
43-
"analyzer": "simple"
45+
"analyzer": "simple",
46+
"search_analyzer": "whitespace",
4447
},
4548
"column_names": {
4649
"type":"text",
47-
"analyzer": "simple",
50+
"analyzer": "whitespace",
4851
"fields": {
4952
"raw": {
5053
"type": "keyword"
@@ -53,7 +56,8 @@
5356
},
5457
"column_descriptions": {
5558
"type": "text",
56-
"analyzer": "simple"
59+
"analyzer": "simple",
60+
"search_analyzer": "whitespace",
5761
},
5862
"tags": {
5963
"type": "keyword"
@@ -66,7 +70,7 @@
6670
},
6771
"database": {
6872
"type": "text",
69-
"analyzer": "simple",
73+
"analyzer": "whitespace",
7074
"fields": {
7175
"raw": {
7276
"type": "keyword"

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from setuptools import setup, find_packages
33

44

5-
__version__ = '2.5.14'
5+
__version__ = '2.5.15'
66

77
requirements_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'requirements.txt')
88
with open(requirements_path) as requirements_file:

0 commit comments

Comments
 (0)