Commit 19ddbeb2 authored by Clément Schreiner's avatar Clément Schreiner
Browse files

Remove 1-character terms from the query.

parent e404d186
......@@ -54,7 +54,7 @@ class XapianQuery(object):
query.
"""
regexp = r'\w+'
return re.findall(regexp, text.lower())
return filter(lambda x: len(x) > 1, re.findall(regexp, text.lower()))
def add_words(self, word_list):
"""
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment