diff options
author | Joris Beckers <joris.beckers@colruytgroup.com> | 2020-07-22 13:00:46 +0300 |
---|---|---|
committer | Joris Beckers <joris.beckers@colruytgroup.com> | 2020-07-22 13:00:46 +0300 |
commit | 4512d2757b0d1a589ceefa6d2df5144d52e7c406 (patch) | |
tree | 76afa2919e662b219798a20760cfa18cfeb078e8 /sphinx/search | |
parent | d8064a8b8fe2b6b921a5409eeb636418b480981a (diff) |
Allow searching for things like serials, phone numbers, etc
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 b531145f4..4534dd333 100644 --- a/sphinx/search/__init__.py +++ b/sphinx/search/__init__.py @@ -117,7 +117,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 or word.isdigit() + len(word) < 3 or word in self.stopwords )))) |