grails-hibernate-search-plugin icon indicating copy to clipboard operation
grails-hibernate-search-plugin copied to clipboard

Upgrading to Grails 4

Open mtgleeson opened this issue 5 years ago • 5 comments

Hi, I've recently started using the Hibernate Search plugin with Grails 4. As a FYI, it works fine but I had to override the following dependency in build.gradle to get search working: compile "org.hibernate:hibernate-search-orm:5.11.4.Final"

The version is compatible with hibernate core 5.4.0 (used in Grails 4) - http://hibernate.org/search/releases/5.11/

mtgleeson avatar Jan 05 '20 23:01 mtgleeson

Hello @mtgleeson, that's nice, thanks. Could you submit a PR with your fix so everyone could enjoy it please?

Thanks again

lgrignon avatar Jan 12 '20 10:01 lgrignon

@mtgleeson I would also be interested in trying your Grails 4 version. Could you make a PR or check-in a forked repo?

benfreefly avatar Apr 08 '20 22:04 benfreefly

Hi @lgrignon - apologies I just saw your message.

I didn't have to make any changes to the plugin to get it working. Version 2.3.0 works fine with Grails 4. The only change I had to make was to force the plugin to use hibernate-search-orm verison 5.11.4.Final.

i.e. in my app's build.gradle: compile "org.grails.plugins:hibernate-search:2.3.0" compile "org.hibernate:hibernate-search-orm:5.11.4.Final"

mtgleeson avatar Apr 09 '20 05:04 mtgleeson

Could you please test it https://bintray.com/lgrignon/plugins/hibernate-search/2.4.0

And close issue?

Thanks

lgrignon avatar Apr 10 '20 17:04 lgrignon

Tested with 2.4.0 - before adding search-orm:5.11.4 grails could not find the annotations @Indexed the search() function was not avaiulable. Now it is and indexing works fine. So basic setup works cant tell anything about complex things now.

langerc avatar Apr 15 '20 08:04 langerc