Error upgrading grails app to 2.3.7

358 Views Asked by At

I have recently upgraded my Grails application from 2.1.1 to 2.3.7. It's showing some exceptions with searchable plugin. I am using searchable:0.6.6

Exception looks like this:

C:\Users\Charu\.grails\2.3.7\projects\jobjoos\plugins\searchable-0.6.6\src\java\grails\plugin\searchable\internal\compass\config\EnvironmentSearchableCompassConfigurator.java:25: package org.apache.lucene.analysis does not exist
import org.apache.lucene.analysis.Analyzer;
                                 ^
C:\Users\Charu\.grails\2.3.7\projects\jobjoos\plugins\searchable-0.6.6\src\java\grails\plugin\searchable\internal\compass\search\DefaultSuggestQueryMethod.java:31: package org.apache.lucene.analysis does not exist
import org.apache.lucene.analysis.WhitespaceAnalyzer;

Can anyone help me on this, about what's causing it to fail and how to remove it.

2

There are 2 best solutions below

0
On

I downgraded the searchable version from 0.6.6 to 0.6.5, then it works fine.

3
On

Have you added this:

Use the above dependency declaration in your BuildConfig.groovy file and then add

mavenRepo "http://repo.grails.org/grails/core"

since this is now required

I had got around it in the past by adding this to my dependencies

dependencies {

        compile("org.compass-project:compass:2.2.0")
}