Hi, I need help to make this configuration work properly.
I use this example:
https://github.com/avner-levy/hibernate_search_solr_integration
Everything runs normal and the app add the indexes to my Solr server.
The problem is when i add the @AnalyzerDef and filters to my entity. I get this error message:
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [config-spring-hibernate.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: org/apache/solr/common/ResourceLoader
The example project use this framework versions:
Code:
<spring.framework.version>3.1.2.RELEASE</spring.framework.version>
<hibernate.version>4.1.7.Final</hibernate.version>
<hibernate.search.version>4.2.0.Final</hibernate.search.version>
<aspectj.version>1.7.0</aspectj.version>
<compiler.version>1.6</compiler.version>
<solrj-version>4.0.0-BETA</solrj-version>
I read in
stackoverflow that Solrj > 4 is incompatible with solr < 4. But the hibernate-search use solr-core-3.6.2 and if I set the Solrj version to 3.6.2 I get other missing class error.
Thanks