grails-searchable

Grails “a different object with the same identifier value was already associated with the session” error [duplicate]

冷暖自知 提交于 2019-12-23 10:42:57
问题 This question already has an answer here : Closed 7 years ago . Possible Duplicate: Hibernate: different object with the same identifier value was already associated with the session I have the following code in my controller in Grails that is failing with "a different object with the same identifier value was already associated with the session" error message. I have already visited few pages where it says that I must call "merge" before calling save which ends up with this error Provided id

Searchable index gets locked on manual update (LockObtainFailedException)

风格不统一 提交于 2019-12-20 02:27:14
问题 We have a Grails project that runs behind a load balancer. There are three instances of the Grails application running on the server (using separate Tomcat instances). Each instance has its own searchable index. Because the indexes are separate, the automatic update is not enough keeping the index consistent between the application instances. Because of this we have disabled the searchable index mirroring and updates to the index are done manually in a scheduled quartz job. According to our

grails 3.0.5 with searchable plugin

半城伤御伤魂 提交于 2019-12-11 19:40:26
问题 i am trying to upgrade my application from grails 2.1.1 to grails 3.0.5 i get a problem to install searchable plugin... i see this page.. it says "Grails version: 2.0 > *".. then it must be support for grails 3.0.5 i put mavenRepo "http://repo.grails.org/grails/core" in repositories like this.. repositories { mavenLocal() maven { url "https://repo.grails.org/grails/core" } mavenRepo "http://repo.grails.org/grails/core" } and compile ":searchable:0.6.9" in dependencies but i get this error C:

grails searcheable plugin search in inner hasMany class

二次信任 提交于 2019-12-08 04:50:36
问题 Hello I am reading the standard documentation for grails searcheable plugin at http://grails.org/Searchable+Plugin+-+Mapping+-+Class+Property+Mapping It describes searcheable references and components in that. In the classic scenario discussed on the page if I have class News { static searchable = true static hasMany = [comments: Comment] String text } and class Comment { static searchable = true String text } If I am searching by News.search("a phrase", params) what do I have to change in

grails searcheable plugin search in inner hasMany class

别说谁变了你拦得住时间么 提交于 2019-12-06 14:48:16
Hello I am reading the standard documentation for grails searcheable plugin at http://grails.org/Searchable+Plugin+-+Mapping+-+Class+Property+Mapping It describes searcheable references and components in that. In the classic scenario discussed on the page if I have class News { static searchable = true static hasMany = [comments: Comment] String text } and class Comment { static searchable = true String text } If I am searching by News.search("a phrase", params) what do I have to change in this query so that "a phrase" is searched into news as well as comments of news? try to configure