Skip to content

Commit 02741ba

Browse files
committed
Remove hack doing only OR
1 parent f6523d4 commit 02741ba

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

readthedocs/search/documents.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,7 @@ def get_es_query(cls, query):
117117

118118
# Need to search for both 'AND' and 'OR' operations
119119
# The score of AND should be higher as it satisfies both OR and AND
120-
for operator in ['OR']:
121-
# TODO: readd this, testing removal for performance
122-
# for operator in ['AND', 'OR']:
120+
for operator in ['AND', 'OR']:
123121
query_string = SimpleQueryString(query=query, fields=cls.search_fields,
124122
default_operator=operator)
125123
all_queries.append(query_string)

0 commit comments

Comments
 (0)