简体   繁体   中英

Grails , resolve conflict between migration plugin and searchable plugin

I am using both migration plugin ( version 1.3.8 ) and searchable plugin ( version 0.6.5 ) on grails ( version 2.3.0 ) but I can not manage making the searchable plugin run after the migration plugin.

I searched and found this as a solution:

adding this to config.groovy

bulkIndexOnStartup = false
mirrorChanges = false

and adding this to bootstrap.groovy

searchableService.reindex()
searchableService.startMirroring()

but this is not helping.

This is the error I get:

Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column 'this_.address' in 'field list'
    at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
    at com.mysql.jdbc.Util.getInstance(Util.java:386)

.
.
.
Error executing script DbmGormDiff: org.compass.gps.CompassGpsException: Failed to index, execution exception; nested exception is java.util.concurrent.ExecutionException: org.compass.gps.device.hibernate.HibernateGpsDeviceException: {hibernate}: Failed to index the database; nested exception is org.hibernate.exception.SQLGrammarException: could not execute query using scroll (Use --stacktrace to see the full trace)

thanks,

Just till I get a permanent solution I did this.

1. comment out the searchable plugin in buildConfig.groovy ( It will be automatically uninstalled when you run the next grails command)

2. Do whatever you want to do with the migration plugin

3. uncomment the searchable plugin in buildConfig.groovy (It will be automatically installed when you run the next grails command)

but still curios to know why doing:

bulkIndexOnStartup = false
mirrorChanges = false

is not disabling the plugin till bootstrap

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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