An open source, non-profit web search engine
Search for the term itself as well as its completion
Daoud Clarkeb99d9d1c6a67
diff --git a/mwmbl/tinysearchengine/rank.py b/mwmbl/tinysearchengine/rank.pyindex 6a03420..04130ce 100644--- a/mwmbl/tinysearchengine/rank.py+++ b/mwmbl/tinysearchengine/rank.py@@ -138,7 +138,7 @@ class Ranker:terms = [x.lower() for x in q.replace('.', ' ').split()]is_complete = q.endswith(' ')if len(terms) > 0 and not is_complete:- retrieval_terms = terms[:-1] + self.completer.complete(terms[-1])+ retrieval_terms = terms + self.completer.complete(terms[-1])else:retrieval_terms = terms