Hibernate Books

All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Hibernate Search Properties in Spring Boot
PostPosted: Thu Oct 13, 2016 12:40 pm 
Newbie

Joined: Thu Jul 16, 2015 4:29 pm
Posts: 3
Hi,

I am using

spring boot 1.3.3
hibernate search 5.5.2

The issue is this. I have been using the following approach (prefix with spring.jpa.properties) with the hibernate search properties in the application.properties file. Up until now this seemed to work fine. All example code I can find does the same thing.

spring.jpa.properties.hibernate.search.default.indexBase=${propat.basePath}index\\

But, when I add the property to set the worker configuration to async, it is not applied. i.e.

spring.jpa.properites.hibernate.search.default.worker.execution=async

The only approach I have been able to get to work is to pass it on the command line...

i.e. -D hibernate.search.default.worker.execution=async

This makes me suspect that the spring.jpa.properties in application.properties are being applied too late in the initialization process as far as hibernate search worker initialization is concerned.

Does anybody know of a better way to do this in spring boot?

Thanks,

Keith


Top
 Profile  
 
 Post subject: Re: Hibernate Search Properties in Spring Boot
PostPosted: Fri Oct 14, 2016 7:05 pm 
Newbie

Joined: Thu Jul 16, 2015 4:29 pm
Posts: 3
Nevermind... I finally realized the error...

spring.jpa.properites.hibernate.search.default.worker.execution=async

should be:

spring.jpa.properties.hibernate.search.default.worker.execution=async

Ugh,

Keith


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.