Skip to content

Commit 30979b2

Browse files
authored
add skip-indexing - remove solr from klass api properties (#407)
1 parent d73114d commit 30979b2

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

.nais/test/klass-api.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ spec:
2727
- name: klass
2828
env:
2929
- name: SPRING_PROFILES_ACTIVE
30-
value: api, postgres, remote-open-search
30+
value: api, postgres, remote-open-search, skip-indexing
3131
- name: OPENSEARCH_USERNAME
3232
value: ${OPEN_SEARCH_USERNAME}
3333
- name: OPENSEARCH_URL

klass-api/src/main/resources/application.properties

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ info.build.version=@project.version@
66
# Profiles for production
77
# production = disables test users
88
# postgres = use remote postgres database
9-
# remote-solr = use remote Solr server (make sure klass.env.search.solr.url is correct)
109
# skip-indexing = skips indexing classifications for search at startup, (useful when running multiple nodes)
1110
#
1211
# Profiles for development
@@ -15,18 +14,17 @@ info.build.version=@project.version@
1514
# h2 = use h2 database (stored on your filesystem)
1615
# h2-inmemory = use h2 database but keep everything in memory only.(tests must use h2-inmemory)
1716
# embedded-postgres = use embedded postgresql for testing with postgres engine
18-
# embedded-solr = run an instance of solr as part of the application (no need to start the solr application)
1917
# postgres-local = postgresql database (local container)
2018
#----------------------
2119
#-----------------------
2220
#profiles for development (server configuration will override these)
2321
#-----------------------
2422
# Dev. self contained
25-
#spring-boot.run.profiles=api, postgres, skip-indexing, embedded-solr
23+
#spring-boot.run.profiles=api, postgres, skip-indexing
2624
# Dev. data migrated from sql file
2725
#spring-boot.run.profiles=api,postgres-local,skip-indexing
28-
# Dev. with external dependencies (db and solr)
29-
#spring-boot.run.profiles=api,remote-solr,skip-indexing
26+
# Dev. with external dependencies (db)
27+
#spring-boot.run.profiles=api,skip-indexing
3028
#-----------------------
3129
# Environment variables
3230
#-----------------------
@@ -41,9 +39,6 @@ management.endpoints.web.base-path=/actuator
4139
management.endpoints.web.exposure.include=*
4240
management.endpoint.prometheus.enabled=true
4341
management.metrics.tags.application=klass
44-
# solr Properties
45-
klass.env.search.solr.url=http://localhost:8983/solr
46-
klass.env.search.solr.core=Klass
4742
klass.env.search.elasticsearch.index=klass
4843
# search properties
4944
klass.search.resultsPerPage=10

0 commit comments

Comments
 (0)