Skip to content

Commit 24c050c

Browse files
authored
Search: Update ES to 8.19.7 (#12587)
elasticsearch-dsl was incorporated into elasticsearch, so there is no need for the extra dependency. django-es already migrated to the new package. Other than that, there aren't any breaking changes, we already have the latest versions of the clients installed, and everything is working locally.
1 parent 8866ba2 commit 24c050c

File tree

7 files changed

+12
-38
lines changed

7 files changed

+12
-38
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
# Don't skip search tests.
1313
TOX_POSARGS: ''
1414
PYTEST_COVERAGE: --cov-report=xml --cov-config .coveragerc --cov=. --cov-append
15-
- image: 'docker.elastic.co/elasticsearch/elasticsearch:8.10.2'
15+
- image: 'docker.elastic.co/elasticsearch/elasticsearch:8.19.7'
1616
name: search
1717
environment:
1818
discovery.type: single-node

readthedocs/search/faceted_search.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@
33
import structlog
44
from django.conf import settings
55
from elasticsearch import Elasticsearch
6-
from elasticsearch_dsl import FacetedSearch
7-
from elasticsearch_dsl import TermsFacet
8-
from elasticsearch_dsl.query import Bool
9-
from elasticsearch_dsl.query import FunctionScore
10-
from elasticsearch_dsl.query import MultiMatch
11-
from elasticsearch_dsl.query import Nested
12-
from elasticsearch_dsl.query import SimpleQueryString
13-
from elasticsearch_dsl.query import Term
14-
from elasticsearch_dsl.query import Terms
15-
from elasticsearch_dsl.query import Wildcard
6+
from elasticsearch.dsl import FacetedSearch
7+
from elasticsearch.dsl import TermsFacet
8+
from elasticsearch.dsl.query import Bool
9+
from elasticsearch.dsl.query import FunctionScore
10+
from elasticsearch.dsl.query import MultiMatch
11+
from elasticsearch.dsl.query import Nested
12+
from elasticsearch.dsl.query import SimpleQueryString
13+
from elasticsearch.dsl.query import Term
14+
from elasticsearch.dsl.query import Terms
15+
from elasticsearch.dsl.query import Wildcard
1616

1717
from readthedocs.search.documents import PageDocument
1818
from readthedocs.search.documents import ProjectDocument

requirements/deploy.txt

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -199,14 +199,10 @@ elastic-transport==8.17.1
199199
# via
200200
# -r requirements/pip.txt
201201
# elasticsearch
202-
# elasticsearch-dsl
203202
elasticsearch==8.19.2
204203
# via
205204
# -r requirements/pip.txt
206205
# django-elasticsearch-dsl
207-
# elasticsearch-dsl
208-
elasticsearch-dsl==8.18.0
209-
# via -r requirements/pip.txt
210206
executing==2.2.1
211207
# via stack-data
212208
fido2==2.0.0
@@ -342,7 +338,6 @@ python-dateutil==2.9.0.post0
342338
# botocore
343339
# celery
344340
# elasticsearch
345-
# elasticsearch-dsl
346341
python-ipware==3.0.0
347342
# via
348343
# -r requirements/pip.txt
@@ -427,7 +422,6 @@ typing-extensions==4.15.0
427422
# -r requirements/pip.txt
428423
# cron-descriptor
429424
# elasticsearch
430-
# elasticsearch-dsl
431425
# psycopg
432426
# psycopg-pool
433427
# pydantic

requirements/docker.txt

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -207,14 +207,10 @@ elastic-transport==8.17.1
207207
# via
208208
# -r requirements/pip.txt
209209
# elasticsearch
210-
# elasticsearch-dsl
211210
elasticsearch==8.19.2
212211
# via
213212
# -r requirements/pip.txt
214213
# django-elasticsearch-dsl
215-
# elasticsearch-dsl
216-
elasticsearch-dsl==8.18.0
217-
# via -r requirements/pip.txt
218214
executing==2.2.1
219215
# via stack-data
220216
fancycompleter==0.11.1
@@ -370,7 +366,6 @@ python-dateutil==2.9.0.post0
370366
# botocore
371367
# celery
372368
# elasticsearch
373-
# elasticsearch-dsl
374369
python-ipware==3.0.0
375370
# via
376371
# -r requirements/pip.txt
@@ -454,7 +449,6 @@ typing-extensions==4.15.0
454449
# -r requirements/pip.txt
455450
# cron-descriptor
456451
# elasticsearch
457-
# elasticsearch-dsl
458452
# psycopg
459453
# psycopg-pool
460454
# pydantic

requirements/pip.in

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ requests-oauthlib
6262

6363
# Search
6464
elasticsearch~=8.0
65-
elasticsearch-dsl~=8.0
6665
django-elasticsearch-dsl~=8.0
6766

6867
selectolax

requirements/pip.txt

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -157,16 +157,11 @@ drf-extensions==0.8.0
157157
drf-flex-fields==1.0.2
158158
# via -r requirements/pip.in
159159
elastic-transport==8.17.1
160-
# via
161-
# elasticsearch
162-
# elasticsearch-dsl
160+
# via elasticsearch
163161
elasticsearch==8.19.2
164162
# via
165163
# -r requirements/pip.in
166164
# django-elasticsearch-dsl
167-
# elasticsearch-dsl
168-
elasticsearch-dsl==8.18.0
169-
# via -r requirements/pip.in
170165
fido2==2.0.0
171166
# via django-allauth
172167
filelock==3.20.0
@@ -247,7 +242,6 @@ python-dateutil==2.9.0.post0
247242
# botocore
248243
# celery
249244
# elasticsearch
250-
# elasticsearch-dsl
251245
python-ipware==3.0.0
252246
# via django-ipware
253247
python3-saml==1.16.0
@@ -308,7 +302,6 @@ typing-extensions==4.15.0
308302
# via
309303
# cron-descriptor
310304
# elasticsearch
311-
# elasticsearch-dsl
312305
# psycopg
313306
# psycopg-pool
314307
# pydantic

requirements/testing.txt

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -210,14 +210,10 @@ elastic-transport==8.17.1
210210
# via
211211
# -r requirements/pip.txt
212212
# elasticsearch
213-
# elasticsearch-dsl
214213
elasticsearch==8.19.2
215214
# via
216215
# -r requirements/pip.txt
217216
# django-elasticsearch-dsl
218-
# elasticsearch-dsl
219-
elasticsearch-dsl==8.18.0
220-
# via -r requirements/pip.txt
221217
execnet==2.1.1
222218
# via pytest-xdist
223219
fido2==2.0.0
@@ -369,7 +365,6 @@ python-dateutil==2.9.0.post0
369365
# botocore
370366
# celery
371367
# elasticsearch
372-
# elasticsearch-dsl
373368
python-ipware==3.0.0
374369
# via
375370
# -r requirements/pip.txt
@@ -465,7 +460,6 @@ typing-extensions==4.15.0
465460
# -r requirements/pip.txt
466461
# cron-descriptor
467462
# elasticsearch
468-
# elasticsearch-dsl
469463
# psycopg
470464
# psycopg-pool
471465
# pydantic

0 commit comments

Comments
 (0)