Reputation: 902
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.
Upvotes: 5
Views: 354
Reputation: 902
I downgraded the searchable version from 0.6.6 to 0.6.5, then it works fine.
Upvotes: 0
Reputation: 8587
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")
}
Upvotes: 0