简体   繁体   English

运行弹性搜索插件grails 2.4.4 / 2.5.0

[英]running elastic search plugin grails 2.4.4 / 2.5.0

I am trying to get the ealastic search plugin running on my grails app. 我想在我的grails应用程序上运行ealastic搜索插件。

originally, I was running on grails 2.4.4. 最初,我在grails 2.4.4上运行。 I used the default configuration 我使用了默认配置

and got this error: Grails Elastic Search Plugin SEVERE: Unexpected transforming call sites grails elasticsearch 并得到此错误: Grails弹性搜索插件严重:意外的转换调用网站grails elasticsearch

so I upgraded to 2.5.0 as suggested in this answer. 所以我按照这个答案的建议升级到了2.5.0。

I set the DatastoreImpl to 我将DatastoreImpl设置为

elasticsearch {
  datastoreImpl = "hibernateDatastore"
}

but I am getting the error that i have not specified the datastore... Somebody got an idea what to try ? 但是我收到的错误是我没有指定数据存储区...有人知道该尝试什么?

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.client.mode = 'local';
elasticSearch.datastoreImpl = 'hibernateDatastore';

This should fix this bug if you append to Config.groovy . 如果您附加到Config.groovy这应该可以修复此错误。

以下配置适用于我:

elasticSearch.datastoreImpl = 'hibernateDatastore'

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM