Unverified Commit 69ea36a6 authored by Tao Feng's avatar Tao Feng Committed by GitHub

Update table search index mapping (#262)

* Update table search index mapping

* update
parent edbb2080
...@@ -16,6 +16,7 @@ TABLE_ELASTICSEARCH_INDEX_MAPPING = textwrap.dedent( ...@@ -16,6 +16,7 @@ TABLE_ELASTICSEARCH_INDEX_MAPPING = textwrap.dedent(
"name": { "name": {
"type":"text", "type":"text",
"analyzer": "simple", "analyzer": "simple",
"search_analyzer": "whitespace",
"fields": { "fields": {
"raw": { "raw": {
"type": "keyword" "type": "keyword"
...@@ -25,6 +26,7 @@ TABLE_ELASTICSEARCH_INDEX_MAPPING = textwrap.dedent( ...@@ -25,6 +26,7 @@ TABLE_ELASTICSEARCH_INDEX_MAPPING = textwrap.dedent(
"schema": { "schema": {
"type":"text", "type":"text",
"analyzer": "simple", "analyzer": "simple",
"search_analyzer": "whitespace",
"fields": { "fields": {
"raw": { "raw": {
"type": "keyword" "type": "keyword"
...@@ -40,11 +42,12 @@ TABLE_ELASTICSEARCH_INDEX_MAPPING = textwrap.dedent( ...@@ -40,11 +42,12 @@ TABLE_ELASTICSEARCH_INDEX_MAPPING = textwrap.dedent(
}, },
"description": { "description": {
"type": "text", "type": "text",
"analyzer": "simple" "analyzer": "simple",
"search_analyzer": "whitespace",
}, },
"column_names": { "column_names": {
"type":"text", "type":"text",
"analyzer": "simple", "analyzer": "whitespace",
"fields": { "fields": {
"raw": { "raw": {
"type": "keyword" "type": "keyword"
...@@ -53,7 +56,8 @@ TABLE_ELASTICSEARCH_INDEX_MAPPING = textwrap.dedent( ...@@ -53,7 +56,8 @@ TABLE_ELASTICSEARCH_INDEX_MAPPING = textwrap.dedent(
}, },
"column_descriptions": { "column_descriptions": {
"type": "text", "type": "text",
"analyzer": "simple" "analyzer": "simple",
"search_analyzer": "whitespace",
}, },
"tags": { "tags": {
"type": "keyword" "type": "keyword"
...@@ -66,7 +70,7 @@ TABLE_ELASTICSEARCH_INDEX_MAPPING = textwrap.dedent( ...@@ -66,7 +70,7 @@ TABLE_ELASTICSEARCH_INDEX_MAPPING = textwrap.dedent(
}, },
"database": { "database": {
"type": "text", "type": "text",
"analyzer": "simple", "analyzer": "whitespace",
"fields": { "fields": {
"raw": { "raw": {
"type": "keyword" "type": "keyword"
......
...@@ -2,7 +2,7 @@ import os ...@@ -2,7 +2,7 @@ import os
from setuptools import setup, find_packages 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') requirements_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'requirements.txt')
with open(requirements_path) as requirements_file: with open(requirements_path) as requirements_file:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment