On 26/06/13 15:15, tadum tada wrote:
Hello!
trying to use jena-text with Lucene here. But it says
ClassNotFoundException: org.apache.solr.client.solrj.SolrServer because it
tries to load that in TextAssembler.init().
Is there a way to tell it that I don't even want to use Solr? Thanks!
That's the SolrJ, the clients-side interface - not the whole of Solr.
As the POM says:
<dependency>
<artifactId>solr-solrj</artifactId>
<groupId>org.apache.solr</groupId>
<version>${ver.solr}</version>
<exclusions>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</exclusion>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-jdk14</artifactId>
</exclusion>
</exclusions>
</dependency>
Anything else from solr is scoped to "test" (use of embedded solr for
testing).
Andy
P.S. using Jena 2.10.2 with jean-text from:
https://repository.apache.org/content/repositories/snapshots/org/apache/jena/jena-text/1.0.0-SNAPSHOT/jena-text-1.0.0-20130626.075943-23.jar