Skip to content

Commit 69dd4d7

Browse files
authored
Merge pull request #4023 from ivanmrsulja/feature/elasticsearch-integration
Added example configuration for ES.
2 parents d3e07f8 + 15f01f7 commit 69dd4d7

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

home/src/main/resources/config/example.applicationSetup.n3

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
# ----------------------------
6666
#
6767
# Search engine module:
68-
# The Solr-based implementation is the only standard option, but it can be
68+
# The Solr-based implementation is the standard option and it can be
6969
# wrapped in an "instrumented" wrapper, which provides additional logging
7070
# and more rigorous life-cycle checking.
7171
#
@@ -79,6 +79,17 @@
7979
a vitroWebapp:searchengine.solr.SolrSearchEngine ,
8080
vitroWebapp:modules.searchEngine.SearchEngine .
8181

82+
# Alternatively, you can setup Elasticsearch engine in the same manner:
83+
84+
#:instrumentedSearchEngineWrapper
85+
# a vitroWebapp:searchengine.InstrumentedSearchEngineWrapper ,
86+
# vitroWebapp:modules.searchEngine.SearchEngine ;
87+
# :wraps :elasticSearchEngine .
88+
89+
#:elasticSearchEngine
90+
# a vitroWebapp:searchengine.elasticsearch.ElasticSearchEngine ,
91+
# vitroWebapp:modules.searchEngine.SearchEngine .
92+
8293
# ----------------------------
8394
#
8495
# Search indexer module:

home/src/main/resources/config/example.runtime.properties

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ argon2.time = 1000
8585
# email.smtpHost =
8686
# email.replyTo =
8787

88-
#
88+
# WARNING: Deprecated, switch to using vitro.local.searchengine.url as explained below
8989
# URL of Solr context used in local VIVO search. This will usually consist of:
9090
# scheme + server_name + port + "solr" + solr_core_name
9191
# In a standard Solr installation, the Solr service will be available on port
@@ -96,6 +96,13 @@ argon2.time = 1000
9696
#
9797
vitro.local.solr.url = http://localhost:8983/solr/vivocore
9898

99+
# URL of generic searchengine context (Supports Solr, Elasticsearch and Opensearch)
100+
# vitro.local.searchengine.url = http://localhost:8983/solr/vivocore
101+
102+
# If basic authentication is supported for connection to you search engine instance,
103+
# the credentials should be provided below
104+
#vitro.local.searchengine.username =
105+
#vitro.local.searchengine.password =
99106

100107
# -----------------------------------------------------------------------------
101108
# LINKING USER ACCOUNTS TO PROFILE PAGES

0 commit comments

Comments
 (0)