Skip to content

Commit 76355f3

Browse files
committed
Also lowercase NOT
1 parent def8680 commit 76355f3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: retrieve-sentences.py

+1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ def retrieve(querytext, searcher, queryparser, maxresults=1000):
3939
# querytext = querytext.replace("OR AND", "or and")
4040
querytext = querytext.replace("OR", "or")
4141
querytext = querytext.replace("AND", "and")
42+
querytext = querytext.replace("NOT", "not")
4243
query = queryparser.parse(queryparser.escape(querytext))
4344
# query = QueryParser(analyzer).parse("Find this sentence please")
4445
hits = searcher.search(query, maxresults)

0 commit comments

Comments
 (0)