运行弹性搜索插件Grails2.4.4/2.5.0
我正在尝试让ealastic搜索插件在我的grails应用程序上运行 最初,我运行的是Grails2.4.4。我使用了默认配置 得到了这个错误: 因此,我按照这个答案中的建议升级到了2.5.0 我将DatastoreImpl设置为运行弹性搜索插件Grails2.4.4/2.5.0,grails,
elasticsearch,gorm,Grails,
elasticsearch,Gorm,我正在尝试让ealastic搜索插件在我的grails应用程序上运行 最初,我运行的是Grails2.4.4。我使用了默认配置 得到了这个错误: 因此,我按照这个答案中的建议升级到了2.5.0 我将DatastoreImpl设置为 elasticsearch { datastoreImpl = "hibernateDatastore" } 但我得到的错误是,我没有指定数据存储。。。 有人知道该怎么做吗 2015-06-28 00:56:11,179 [localhost-startSto
elasticsearch {
datastoreImpl = "hibernateDatastore"
}
但我得到的错误是,我没有指定数据存储。。。
有人知道该怎么做吗
2015-06-28 00:56:11,179 [localhost-startStop-1] ERROR context.GrailsContextLoaderListener - Error initializing the application: No datastore implementation specified
Message: No datastore implementation specified
Line | Method
->> 135 | doCall in ElasticsearchGrailsPlugin$_closure1
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
| 754 | invokeBeanDefiningClosure in grails.spring.BeanBuilder
| 584 | beans . . . . . . . . . . in ''
| 527 | invokeMethod in ''
| 262 | run . . . . . . . . . . . in java.util.concurrent.FutureTask
| 1145 | runWorker in java.util.concurrent.ThreadPoolExecutor
| 615 | run . . . . . . . . . . . in java.util.concurrent.ThreadPoolExecutor$Worker
^ 745 | run in java.lang.Thread
Error |
Forked Grails VM exited with error
以下配置适用于我:
elasticSearch.datastoreImpl='hibernateDatastore'
elasticSearch.client.mode = 'local';
elasticSearch.datastoreImpl = 'hibernateDatastore';
如果您附加到Config.groovy
,这将修复此错误