Unverified Commit 0fc85e76 authored by Tao Feng's avatar Tao Feng Committed by GitHub

fix: revert default search mapping change (#276)

* Revert "Fix ES mapping typo (#267)"

This reverts commit 5dca1c24.

* Revert "Update table search index mapping (#262)"

This reverts commit 69ea36a6.

* fix: revert default search mapping  change
parent a8440b13
...@@ -16,7 +16,6 @@ TABLE_ELASTICSEARCH_INDEX_MAPPING = textwrap.dedent( ...@@ -16,7 +16,6 @@ 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"
...@@ -26,7 +25,6 @@ TABLE_ELASTICSEARCH_INDEX_MAPPING = textwrap.dedent( ...@@ -26,7 +25,6 @@ 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"
...@@ -42,12 +40,11 @@ TABLE_ELASTICSEARCH_INDEX_MAPPING = textwrap.dedent( ...@@ -42,12 +40,11 @@ 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": "whitespace", "analyzer": "simple",
"fields": { "fields": {
"raw": { "raw": {
"type": "keyword" "type": "keyword"
...@@ -56,8 +53,7 @@ TABLE_ELASTICSEARCH_INDEX_MAPPING = textwrap.dedent( ...@@ -56,8 +53,7 @@ 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"
...@@ -70,7 +66,7 @@ TABLE_ELASTICSEARCH_INDEX_MAPPING = textwrap.dedent( ...@@ -70,7 +66,7 @@ TABLE_ELASTICSEARCH_INDEX_MAPPING = textwrap.dedent(
}, },
"database": { "database": {
"type": "text", "type": "text",
"analyzer": "whitespace", "analyzer": "simple",
"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.18' __version__ = '2.5.19'
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