Skip to content

Commit

Permalink
Use english analyzer for descriptions
Browse files Browse the repository at this point in the history
So we'll get support for stemming.
  • Loading branch information
adisbladis committed Jul 1, 2020
1 parent b06bac6 commit 8fbaf6b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions import-scripts/import_scripts/channel.py
Expand Up @@ -79,8 +79,8 @@
"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"}},
Expand All @@ -100,7 +100,7 @@
# 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"},
Expand Down

0 comments on commit 8fbaf6b

Please sign in to comment.