Don't do two searches

ghowardsit
Eric Holscher 2019-01-21 14:27:30 -05:00
parent 7308daf49a
commit 12de58b5b8
1 changed files with 3 additions and 1 deletions

View File

@ -105,7 +105,9 @@ class PageDocument(RTDDocTypeMixin, DocType):
# Need to search for both 'AND' and 'OR' operations
# The score of AND should be higher as it satisfies both OR and AND
for operator in ['AND', 'OR']:
for operator in ['OR']:
# TODO: readd this, testing removal for performance
# for operator in ['AND', 'OR']:
query_string = SimpleQueryString(query=query, fields=cls.search_fields,
default_operator=operator)
all_queries.append(query_string)