Skip to content

Commit

Permalink
Add credit for #798 and fix broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesagnew committed Mar 15, 2018
1 parent 84e606c commit 83b1cf5
Show file tree
Hide file tree
Showing 4 changed files with 133 additions and 332 deletions.
2 changes: 1 addition & 1 deletion hapi-fhir-jpaserver-elasticsearch/pom.xml
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>ca.uhn.hapi.fhir</groupId>
<artifactId>hapi-deployable-pom</artifactId>
<version>3.2.0-SNAPSHOT</version>
<version>3.3.0-SNAPSHOT</version>
<relativePath>../hapi-deployable-pom/pom.xml</relativePath>
</parent>

Expand Down
Expand Up @@ -12,6 +12,7 @@
import ca.uhn.fhir.rest.server.interceptor.ResponseHighlighterInterceptor;
import org.apache.commons.dbcp2.BasicDataSource;
import org.hibernate.jpa.HibernatePersistenceProvider;
import org.hibernate.search.elasticsearch.cfg.ElasticsearchEnvironment;
import org.springframework.beans.factory.annotation.Autowire;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
Expand Down Expand Up @@ -76,7 +77,7 @@ private Properties jpaProperties() {
extraProperties.put("hibernate.cache.use_minimal_puts", "false");

// the belowing properties are used for ElasticSearch integration
extraProperties.put("hibernate.search.elasticsearch.analyzer_definition_provider", ElasticsearchMappingProvider.class.getName());
extraProperties.put(ElasticsearchEnvironment.ANALYZER_DEFINITION_PROVIDER, ElasticsearchMappingProvider.class.getName());
extraProperties.put("hibernate.search.default.indexmanager", "elasticsearch");
extraProperties.put("hibernate.search.default.elasticsearch.host", "http://127.0.0.1:9200");
extraProperties.put("hibernate.search.default.elasticsearch.index_schema_management_strategy", "CREATE");
Expand Down

0 comments on commit 83b1cf5

Please sign in to comment.