Another Word For It Patrick Durusau on Topic Maps and Semantic Diversity

April 25, 2014

Solr In Action – Bug/Feature

Filed under: Solr — Patrick Durusau @ 7:40 pm

Solr In Action has recently appeared from Manning. I bought it on MEAP and am working from the latest version.

There is a bug/feature that you should be aware of if you are using the source code for Solr in Action.

The data-config.xml file (solrpedia/conf/data-config.xml) has the line:

url=”solrpedia.xml”

Which works, if and only if you are using Jetty, which resolves the path relative to solrpedia core.

However, if you are running Solr under Tomcat7, you are going to get an indexing failed with the following log message:

Could not find file: solrpedia.xml (resolved to: /var/lib/tomcat/./solrpedia.xml)

If you change:

url=”solrpedia.xml”

in solrpedia/conf/data-config.xml to:

url=”/usr/share/solr/example/solrpedia.xml”

it works like a charm.

Good to know before I started on a much larger data import. 😉

No Comments

No comments yet.

RSS feed for comments on this post.

Sorry, the comment form is closed at this time.

Powered by WordPress