index as keywords (#24)

fixes #22
This commit is contained in:
Rok Garbas 2020-05-11 23:33:25 +02:00 committed by GitHub
parent ce2121e30e
commit 645813cbd1
Failed to generate hash of commit

View file

@ -154,7 +154,7 @@ def recreate_index(es, channel):
settings=dict(number_of_shards=1),
mappings=dict(
properties=dict(
attr_name=dict(type="text"),
attr_name=dict(type="keyword"),
name=dict(type="text"),
version=dict(type="text"),
description=dict(type="text"),
@ -189,7 +189,7 @@ def recreate_index(es, channel):
settings=dict(number_of_shards=1),
mappings=dict(
properties=dict(
option_name=dict(type="text"),
option_name=dict(type="keyword"),
description=dict(type="text"),
type=dict(type="keyword"),
default=dict(type="text"),