hibernate和mongodb域类上的弹性搜索—Grails
我正在使用hibernate和mongodb映射的域类。然后我安装了elastic search gorm插件并提到hibernate和mongodb域类上的弹性搜索—Grails,hibernate,mongodb,grails,
elasticsearch,Hibernate,Mongodb,Grails,
elasticsearch,我正在使用hibernate和mongodb映射的域类。然后我安装了elastic search gorm插件并提到 "elasticSearch.datastoreImpl = 'mongoDatastore'" in Config.groovy. 它适用于mongodb域类。如何在剩余的hibernate域类上应用弹性搜索?如果我将searchable=true,则会出现错误。替代解决方案-将hibernate域行转换为JSON,并使用本机弹性搜索调用将其添加到弹性搜索数据库。使用hibe
"elasticSearch.datastoreImpl = 'mongoDatastore'" in Config.groovy.
它适用于mongodb域类。如何在剩余的hibernate域类上应用弹性搜索?如果我将searchable=true,则会出现错误。
替代解决方案-将hibernate域行转换为JSON,并使用本机弹性搜索调用将其添加到弹性搜索数据库。使用hibernate搜索及其新的弹性搜索集成:
您可能还想考虑Hibernate OGM来将其他实体映射到MunGdB:< /P>