Skip to content

Commit 285a3e5

Browse files
authored
1 parent b664246 commit 285a3e5

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
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-1
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ def total_count(self):
275275
# we are only interested in the total count
276276
s = s.extra(size=0)
277277
s = s.execute()
278-
return s.hits.total
278+
return s.hits.total['value']
279279

280280
def query(self, search, query):
281281
"""

requirements/pip.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ django-allauth==0.42.0 # pyup: ignore
5252
GitPython==3.1.11
5353

5454
# Search
55-
elasticsearch==6.8.1 # pyup: <7.0.0
56-
elasticsearch-dsl==6.4.0 # pyup: <7.0
57-
django-elasticsearch-dsl==6.4.2 # pyup: <7.0
55+
elasticsearch==7.9.1 # pyup: <8.0.0
56+
elasticsearch-dsl==7.3.0 # pyup: <8.0
57+
django-elasticsearch-dsl==7.1.4 # pyup: <8.0
5858
selectolax==0.2.9
5959

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

0 commit comments

Comments
 (0)