Skip to content

Commit f732a82

Browse files
committed
1 parent b3c54a1 commit f732a82

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

.circleci/config.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@ jobs:
66
- image: 'cimg/python:3.6'
77
environment:
88
TOX_POSARGS: ''
9-
- image: 'docker.elastic.co/elasticsearch/elasticsearch:6.8.12'
9+
- image: 'docker.elastic.co/elasticsearch/elasticsearch:7.9.2'
1010
name: search
11+
environment:
12+
discovery.type: single-node
1113
steps:
1214
- checkout
1315
- run: git submodule sync

readthedocs/search/faceted_search.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,6 @@ def query(self, search, query):
201201
* Adds HTML encoding of results to avoid XSS issues.
202202
"""
203203
search = search.highlight_options(**self._highlight_options)
204-
search = search.source(exclude=['content', 'headers'])
205204

206205
queries = self._get_queries(
207206
query=query,
@@ -256,7 +255,7 @@ def total_count(self):
256255
# we are only interested in the total count
257256
s = s.extra(size=0)
258257
s = s.execute()
259-
return s.hits.total
258+
return s.hits.total['value']
260259

261260
def query(self, search, query):
262261
"""Manipulates the query to support nested queries and a custom rank for pages."""

requirements/pip.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ django-allauth==0.42.0
4646
GitPython==3.1.9
4747

4848
# Search
49-
elasticsearch==6.8.1 # pyup: <7.0.0
50-
elasticsearch-dsl==6.4.0 # pyup: <7.0
51-
django-elasticsearch-dsl==6.4.2 # pyup: <7.0
49+
elasticsearch==7.9.1 # pyup: <8.0.0
50+
elasticsearch-dsl==7.3.0 # pyup: <8.0
51+
django-elasticsearch-dsl==7.1.4 # pyup: <8.0
5252
selectolax==0.2.7
5353

5454
# NOTE: this dep can be removed in python 3.7 in favor of ``date.fromisoformat``

0 commit comments

Comments
 (0)