user13224
user13224

Reputation: 101

Compass Search Annotations cause compiler errors

I'm trying to use the @Searchable annotations from the Compass search engine in my Java program, but I receive a compile-time error: "type mismatch: cannot convert Searchable to Annotation".

I have included all of the jar files that I can think of, and scoured the web for working examples to no avail.

Does anyone have a working example of Compass annotations?

Upvotes: 2

Views: 920

Answers (1)

junghans
junghans

Reputation: 141

"type mismatch: cannot convert Searchable to Annotation"

This error is caused by the Searchable class coming from compass14-x.x.x.jar. In your Compass library put compass14-x.x.x.jar down to the bottom or remove it if you don't need it. The right Searchable class is in compass-x.x.x.jar.

Upvotes: 2

Related Questions