Use english analyzer for descriptions (#110)

This commit is contained in:
adisbladis 2020-08-08 22:38:06 +02:00 committed by GitHub
parent bbec7b2a5b
commit d96877dc64
Failed to generate hash of commit
2 changed files with 4 additions and 4 deletions

View file

@ -1 +1 @@
10 11

View file

@ -70,8 +70,8 @@ MAPPING = {
"package_attr_set": {"type": "keyword", "normalizer": "lowercase"}, "package_attr_set": {"type": "keyword", "normalizer": "lowercase"},
"package_pname": {"type": "keyword", "normalizer": "lowercase"}, "package_pname": {"type": "keyword", "normalizer": "lowercase"},
"package_pversion": {"type": "keyword"}, "package_pversion": {"type": "keyword"},
"package_description": {"type": "text"}, "package_description": {"type": "text", "analyzer": "english"},
"package_longDescription": {"type": "text"}, "package_longDescription": {"type": "text", "analyzer": "english"},
"package_license": { "package_license": {
"type": "nested", "type": "nested",
"properties": {"fullName": {"type": "text"}, "url": {"type": "text"}}, "properties": {"fullName": {"type": "text"}, "url": {"type": "text"}},
@ -91,7 +91,7 @@ MAPPING = {
# Options fields # Options fields
"option_name": {"type": "keyword", "normalizer": "lowercase"}, "option_name": {"type": "keyword", "normalizer": "lowercase"},
"option_name_query": {"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_type": {"type": "keyword"},
"option_default": {"type": "text"}, "option_default": {"type": "text"},
"option_example": {"type": "text"}, "option_example": {"type": "text"},