When using solrconfig.xml to include libraries provided by solr (for text extraction in files for example), there's a need to include libraries provided by solr.

The current syntax in solrconfig.xml to include these libraries refer to an old version of solr. All libraries have been renamed. They used to be called "apache-solr-LIB-VERSION.jar" and are now "solr-LIB-VERSION.jar".

For Apache Solr Cell, in the current solrconfig.xml, the commented syntax is:

<lib dir="../../dist/" regex="apache-solr-cell-\d.*\.jar" />

It should be:

<lib dir="../../dist/" regex="solr-cell-\d.*\.jar" />

This is the name of the jars for solr 4.7.2+.

Comments

drunken monkey’s picture

Project: Search API Solr » Apache Solr Common Configurations
Version: 7.x-1.6 »

Since it's commented out, it's not much of an issue either way, but we still can't really just replace it since the config files might still be used by people with older versions. So, if we want to have examples in there, probably we should have examples for both before and after Solr 4.7.
Or, maybe it makes more sense to just do:

<lib dir="../../dist/" regex=".*solr-cell-\d.*\.jar" />

I guess that would work?

NicholasS’s picture

This should be updated, I spent way too much time troubleshooting this today. Drunken Monkey's fix looks future proof. Also while cleaning up the comments, one should specify that the path to the 'dir' needs updated, and from where its relative too. I was mistakenly thinking it was relative from the file I was editing "solrconfig.xml" but it's relative to the path of your collection folder.