diff options
author | Mateusz Lapsa-Malawski <m@cr3.io> | 2020-08-07 20:19:22 +0300 |
---|---|---|
committer | Mateusz Lapsa-Malawski <m@cr3.io> | 2020-08-07 20:19:22 +0300 |
commit | 2df385e96c23b8267f7f3b7c38bea7bbe3ec5921 (patch) | |
tree | d80d05917621a212c2609526ce90a879507aac8e /sphinx/search | |
parent | 9969239b2255bb145052d7e5aef56e44db15cb5b (diff) |
Synchronise word length between python stemmer and javascript stemmer. Python rejects words shorter then 3 while javascript allows user to search fo them.
Diffstat (limited to 'sphinx/search')
-rw-r--r-- | sphinx/search/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/search/__init__.py b/sphinx/search/__init__.py index 5413957a0..4fd566eeb 100644 --- a/sphinx/search/__init__.py +++ b/sphinx/search/__init__.py @@ -112,7 +112,7 @@ var Stemmer = function() { len(word) == 0 or not ( ((len(word) < 3) and (12353 < ord(word[0]) < 12436)) or (ord(word[0]) < 256 and ( - len(word) < 3 or word in self.stopwords + word in self.stopwords )))) |