File tree 13 files changed +5
-79
lines changed
modules/records/serializers
13 files changed +5
-79
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,5 @@ target/
66
66
.idea /
67
67
68
68
# Locally generated certificates for development
69
- elasticsearch-proxy /nginx.crt
70
- elasticsearch-proxy /nginx.key
71
69
nginx /localhost.crt
72
70
nginx /localhost.key
Original file line number Diff line number Diff line change @@ -13,7 +13,6 @@ export INVENIO_POSTGRESQL_DBNAME=cernopendata
13
13
export INVENIO_POSTGRESQL_DBUSER=cernopendata
14
14
export INVENIO_POSTGRESQL_DBPASS=dbpass123
15
15
export INVENIO_REDIS_HOST=192.168.50.12
16
- export INVENIO_ELASTICSEARCH_HOST=192.168.50.13
17
16
export INVENIO_RABBITMQ_HOST=192.168.50.14
18
17
export INVENIO_WORKER_HOST=192.168.50.15
19
18
# sphinxdoc-kickstart-configuration-variables-end
Original file line number Diff line number Diff line change @@ -9,8 +9,6 @@ include .inveniorc
9
9
include Dockerfile
10
10
include LICENSE
11
11
include babel.ini
12
- include elasticsearch-proxy/Dockerfile
13
- include elasticsearch-proxy/nginx.conf
14
12
include nginx/Dockerfile
15
13
include pytest.ini
16
14
include sentry/Dockerfile
@@ -45,4 +43,3 @@ recursive-include sentry *.json
45
43
recursive-include sentry *.py
46
44
recursive-include sentry *.sh
47
45
recursive-include sentry *.yml
48
- recursive-exclude elasticsearch-proxy *
Original file line number Diff line number Diff line change @@ -427,10 +427,8 @@ def _query_parser_and(qstr=None):
427
427
CERNOPENDATA_DISABLE_DOWNLOADS = os .environ .get ("CERNOPENDATA_DISABLE_DOWNLOADS" , False )
428
428
# Search
429
429
# ======
430
- #: Default Elasticsearch document type.
430
+ #: Default OpenSearch document type.
431
431
SEARCH_DOC_TYPE_DEFAULT = None
432
- #: Do not map any keywords.
433
- SEARCH_ELASTIC_KEYWORD_MAPPING = {}
434
432
435
433
# This one can be used to have multiple instances on the same cluster
436
434
# SEARCH_INDEX_PREFIX = "opendata-dev-"
@@ -447,7 +445,7 @@ def _query_parser_and(qstr=None):
447
445
SEARCH_UI_SEARCH_VIEW = search_legacy
448
446
# OAI-PMH
449
447
# =======
450
- #: Default Elasticsearch index.
448
+ #: Default OpenSearch index.
451
449
OAISERVER_RECORD_INDEX = "records"
452
450
#: OAI ID prefix.
453
451
OAISERVER_ID_PREFIX = "oai:opendata.cern.ch:recid/"
Original file line number Diff line number Diff line change 22
22
# waive the privileges and immunities granted to it by virtue of its status
23
23
# as an Intergovernmental Organization or submit itself to any jurisdiction.
24
24
25
- """CERN Open Data Elasticsearch v7 Mappings."""
25
+ """CERN Open Data OpenSearch v7 Mappings."""
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ def serialize_search(
53
53
"""Serialize a search result.
54
54
55
55
:param pid_fetcher: Persistent identifier fetcher.
56
- :param search_result: Elasticsearch search result.
56
+ :param search_result: OpenSearch search result.
57
57
:param links: Dictionary of links to add to response.
58
58
"""
59
59
total = search_result ["hits" ]["total" ]["value" ]
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -50,7 +50,6 @@ celery==5.0.4
50
50
certifi==2021.5.30
51
51
# via
52
52
# dulwich
53
- # elasticsearch
54
53
# requests
55
54
cffi==1.14.5
56
55
# via cryptography
@@ -308,7 +307,7 @@ invenio-rest[cors]==1.2.1
308
307
# invenio-accounts
309
308
# invenio-files-rest
310
309
# invenio-records-rest
311
- invenio-search[elasticsearch7 ]==1.4.1
310
+ invenio-search[opensearch2 ]==1.4.1
312
311
# via cernopendata (setup.py)
313
312
invenio-search-ui==2.0.1
314
313
# via cernopendata (setup.py)
@@ -456,7 +455,6 @@ python-dateutil==2.8.2
456
455
# via
457
456
# alembic
458
457
# arrow
459
- # elasticsearch-dsl
460
458
# invenio-records-rest
461
459
# jupyter-client
462
460
python-editor==1.0.4
@@ -493,7 +491,6 @@ six==1.16.0
493
491
# base32-lib
494
492
# bleach
495
493
# click-repl
496
- # elasticsearch-dsl
497
494
# flask-breadcrumbs
498
495
# flask-cors
499
496
# flask-kvsession-invenio
@@ -555,7 +552,6 @@ uritools==3.0.2
555
552
urllib3==1.26.6
556
553
# via
557
554
# dulwich
558
- # elasticsearch
559
555
# requests
560
556
uwsgi==2.0.21
561
557
# via cernopendata (setup.py)
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
#
3
3
# Helper script for developers to generate certificates for running CERN Open Data portal locally.
4
-
5
- openssl req -x509 -out ./elasticsearch-proxy/nginx.crt -keyout ./elasticsearch-proxy/nginx.key \
6
- -newkey rsa:2048 -nodes -sha256 \
7
- -subj ' /CN=localhost' -extensions EXT -config <( \
8
- printf " [dn]\nCN=localhost\n[req]\ndistinguished_name = dn\n[EXT]\nsubjectAltName=DNS:localhost\nkeyUsage=digitalSignature\nextendedKeyUsage=serverAuth" )
9
-
10
4
openssl req -x509 -out ./nginx/localhost.crt -keyout ./nginx/localhost.key \
11
5
-newkey rsa:2048 -nodes -sha256 \
12
6
-subj ' /CN=localhost' -extensions EXT -config <( \
Original file line number Diff line number Diff line change @@ -10,6 +10,3 @@ ACCOUNTS_SESSION_REDIS_URL='redis://{{ environ('INVENIO_REDIS_HOST') }}:6379/1'
10
10
BROKER_URL =' amqp://guest:guest@{{ environ(' INVENIO_RABBITMQ_HOST' ) }}:5672/' # Celery 3
11
11
CELERY_BROKER_URL =' amqp://guest:guest@{{ environ(' INVENIO_RABBITMQ_HOST' ) }}:5672/' # Celery 4
12
12
CELERY_RESULT_BACKEND =' redis://{{ environ(' INVENIO_REDIS_HOST' ) }}:6379/2'
13
-
14
- # Elasticsearch
15
- SEARCH_ELASTIC_HOSTS =' {{ environ(' INVENIO_ELASTICSEARCH_HOST' ) }}'
Original file line number Diff line number Diff line change @@ -35,7 +35,6 @@ universal = 1
35
35
36
36
[check-manifest]
37
37
ignore =
38
- elasticsearch-*
39
38
.github
40
39
.github/*
41
40
You can’t perform that action at this time.
0 commit comments