dkpro / dkpro-core

Collection of software components for natural language processing (NLP) based on the Apache UIMA framework.
https://dkpro.github.io/dkpro-core
Other
196 stars 67 forks source link

Upgrade dkpro-core-solr #957

Closed carschno closed 8 years ago

carschno commented 8 years ago

Solr v6.2.0 has been released. dkpro-core-solr still uses version 6.0.1 and should be updated.

To do: change value of <solr-solrj.version> in pom.xml from 6.0.1 to 6.2.0.

carschno commented 8 years ago

The frequently used SolrInputDocument class no longer has a default constructor since Solr 6.1.: https://issues.apache.org/jira/browse/SOLR-9373. This may raise various issues with the usage of that class (need to check).

carschno commented 8 years ago

In fact, the default constructor has been replaced by a constructor of variable argument length (public SolrInputDocument(String... fields)) which appears to result in the following exceptions under certain circumstances when called via reflection (see the afore-mentioned issue in the Solr Jira):

java.lang.NoSuchMethodError: org.apache.solr.common.SolrInputDocument: method <init>()V not found

I myself observed this once and never again. Possibly, rebuilding the module did the trick.