From d96877dc64e4308b9d0432c9c8f916babf2ea95a Mon Sep 17 00:00:00 2001 From: adisbladis Date: Sat, 8 Aug 2020 22:38:06 +0200 Subject: [PATCH] Use english analyzer for descriptions (#110) --- VERSION | 2 +- import-scripts/import_scripts/channel.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/VERSION b/VERSION index f599e28..b4de394 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -10 +11 diff --git a/import-scripts/import_scripts/channel.py b/import-scripts/import_scripts/channel.py index 01cc8e2..805de6e 100644 --- a/import-scripts/import_scripts/channel.py +++ b/import-scripts/import_scripts/channel.py @@ -70,8 +70,8 @@ MAPPING = { "package_attr_set": {"type": "keyword", "normalizer": "lowercase"}, "package_pname": {"type": "keyword", "normalizer": "lowercase"}, "package_pversion": {"type": "keyword"}, - "package_description": {"type": "text"}, - "package_longDescription": {"type": "text"}, + "package_description": {"type": "text", "analyzer": "english"}, + "package_longDescription": {"type": "text", "analyzer": "english"}, "package_license": { "type": "nested", "properties": {"fullName": {"type": "text"}, "url": {"type": "text"}}, @@ -91,7 +91,7 @@ MAPPING = { # Options fields "option_name": {"type": "keyword", "normalizer": "lowercase"}, "option_name_query": {"type": "keyword", "normalizer": "lowercase"}, - "option_description": {"type": "text"}, + "option_description": {"type": "text", "analyzer": "english"}, "option_type": {"type": "keyword"}, "option_default": {"type": "text"}, "option_example": {"type": "text"},