diff options
author | Munyoki Kilyungi | 2024-08-09 15:09:12 +0300 |
---|---|---|
committer | BonfaceKilz | 2024-08-09 15:22:25 +0300 |
commit | 1ec001c4490a5c78075c3fa434fa4e8cd9aaa1a8 (patch) | |
tree | 1c31ba2c75775cdc6fb8877780b6b2ca52404c9e | |
parent | 784d4bf9f0da40887ffecd000bd361f46c20ea41 (diff) | |
download | genenetwork3-1ec001c4490a5c78075c3fa434fa4e8cd9aaa1a8.tar.gz |
Use correct stemming strategy when searching.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
-rw-r--r-- | gn3/api/search.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gn3/api/search.py b/gn3/api/search.py index 772ff1d..f696428 100644 --- a/gn3/api/search.py +++ b/gn3/api/search.py @@ -207,7 +207,7 @@ def parse_query(synteny_files_directory: Path, query: str): """Parse search query using GeneNetwork specific field processors.""" queryparser = xapian.QueryParser() queryparser.set_stemmer(xapian.Stem("en")) - queryparser.set_stemming_strategy(queryparser.STEM_ALL) + queryparser.set_stemming_strategy(queryparser.STEM_ALL_Z) species_prefix = "XS" chromosome_prefix = "XC" queryparser.add_boolean_prefix("author", "A") |