Skip to content

Commit

Permalink
Rename the configuration prefix for the Hibernate Search extension to…
Browse files Browse the repository at this point in the history
… 'quarkus.hibernate-search-orm.'

Instead of 'quarkus.hibernate-search.'.

Signed-off-by: Yoann Rodière <[email protected]>
  • Loading branch information
yrodiere committed Oct 20, 2020
1 parent 12ece3c commit b2f4452
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 17 deletions.
10 changes: 5 additions & 5 deletions docs/src/main/asciidoc/hibernate-search-orm-elasticsearch.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -552,11 +552,11 @@ quarkus.datasource.jdbc.url=jdbc:postgresql:quarkus_test
quarkus.hibernate-orm.database.generation=drop-and-create <3>
quarkus.hibernate-orm.sql-load-script=import.sql <4>
quarkus.hibernate-search.elasticsearch.version=7 <5>
quarkus.hibernate-search.elasticsearch.analysis.configurer=org.acme.hibernate.search.elasticsearch.config.AnalysisConfigurer <6>
quarkus.hibernate-search.schema-management.strategy=drop-and-create <7>
quarkus.hibernate-search.elasticsearch.schema-management.required-status=yellow <8>
quarkus.hibernate-search.automatic-indexing.synchronization.strategy=sync <9>
quarkus.hibernate-search-orm.elasticsearch.version=7 <5>
quarkus.hibernate-search-orm.elasticsearch.analysis.configurer=org.acme.hibernate.search.elasticsearch.config.AnalysisConfigurer <6>
quarkus.hibernate-search-orm.schema-management.strategy=drop-and-create <7>
quarkus.hibernate-search-orm.elasticsearch.schema-management.required-status=yellow <8>
quarkus.hibernate-search-orm.automatic-indexing.synchronization.strategy=sync <9>
----
<1> We won't use SSL so we disable it to have a more compact native executable.
<2> Let's create a PostgreSQL datasource.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ private static void checkConfig(HibernateSearchElasticsearchBuildTimeConfig buil
// we validate that the version is present for the default backend
if (!buildTimeConfig.defaultBackend.version.isPresent()) {
throw new ConfigurationError(
"The Elasticsearch version needs to be defined via the quarkus.hibernate-search.elasticsearch.version property.");
"The Elasticsearch version needs to be defined via the quarkus.hibernate-search-orm.elasticsearch.version property.");
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import io.quarkus.runtime.annotations.ConfigPhase;
import io.quarkus.runtime.annotations.ConfigRoot;

@ConfigRoot(name = "hibernate-search", phase = ConfigPhase.BUILD_AND_RUN_TIME_FIXED)
@ConfigRoot(name = "hibernate-search-orm", phase = ConfigPhase.BUILD_AND_RUN_TIME_FIXED)
public class HibernateSearchElasticsearchBuildTimeConfig {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import io.quarkus.runtime.annotations.ConfigPhase;
import io.quarkus.runtime.annotations.ConfigRoot;

@ConfigRoot(name = "hibernate-search", phase = ConfigPhase.RUN_TIME)
@ConfigRoot(name = "hibernate-search-orm", phase = ConfigPhase.RUN_TIME)
public class HibernateSearchElasticsearchRuntimeConfig {

/**
Expand Down Expand Up @@ -360,7 +360,7 @@ public static class ThreadPoolConfig {
}

// We can't set actual default values in this section,
// otherwise "quarkus.hibernate-search.elasticsearch.index-defaults" will be ignored.
// otherwise "quarkus.hibernate-search-orm.elasticsearch.index-defaults" will be ignored.
@ConfigGroup
public static class ElasticsearchIndexSchemaManagementConfig {
/**
Expand All @@ -379,7 +379,7 @@ public static class ElasticsearchIndexSchemaManagementConfig {
}

// We can't set actual default values in this section,
// otherwise "quarkus.hibernate-search.elasticsearch.index-defaults" will be ignored.
// otherwise "quarkus.hibernate-search-orm.elasticsearch.index-defaults" will be ignored.
@ConfigGroup
public static class ElasticsearchIndexIndexingConfig {
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ quarkus.datasource.jdbc.max-size=8
quarkus.hibernate-orm.dialect=org.hibernate.dialect.H2Dialect
quarkus.hibernate-orm.database.generation=drop-and-create

quarkus.hibernate-search.elasticsearch.version=7
quarkus.hibernate-search.elasticsearch.hosts=${elasticsearch.hosts}
quarkus.hibernate-search.elasticsearch.protocol=${elasticsearch.protocol}
quarkus.hibernate-search.elasticsearch.analysis.configurer=io.quarkus.it.hibernate.search.elasticsearch.search.DefaultITAnalysisConfigurer
quarkus.hibernate-search.elasticsearch.schema-management.required-status=yellow
quarkus.hibernate-search.schema-management.strategy=drop-and-create-and-drop
quarkus.hibernate-search.automatic-indexing.synchronization.strategy=sync
quarkus.hibernate-search-orm.elasticsearch.version=7
quarkus.hibernate-search-orm.elasticsearch.hosts=${elasticsearch.hosts}
quarkus.hibernate-search-orm.elasticsearch.protocol=${elasticsearch.protocol}
quarkus.hibernate-search-orm.elasticsearch.analysis.configurer=io.quarkus.it.hibernate.search.elasticsearch.search.DefaultITAnalysisConfigurer
quarkus.hibernate-search-orm.elasticsearch.schema-management.required-status=yellow
quarkus.hibernate-search-orm.schema-management.strategy=drop-and-create-and-drop
quarkus.hibernate-search-orm.automatic-indexing.synchronization.strategy=sync

0 comments on commit b2f4452

Please sign in to comment.