You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Alexandr Savochkin <al...@gmail.com> on 2010/03/09 20:12:53 UTC

Is "UniqueKey" in schema and "pk" attribute for DataimportHandler entities still optional in solr 1.4?

I allways build solr index from scratch, so I don't have neither "pk"
attribute in "entity" tag (dataconfig.xml file) nor "UniqueKey" in index
schema. When I updated solr from 1.3 to 1.4 I got the following exception
during solr initialization:
------------------------------------------------------------------------------
SEVERE: Exception while loading DataImporter
java.lang.NullPointerException
        at
org.apache.solr.handler.dataimport.DataImporter.identifyPk(DataImporter.java:152)
        at
org.apache.solr.handler.dataimport.DataImporter.<init>(DataImporter.java:111)
        at
org.apache.solr.handler.dataimport.DataImportHandler.inform(DataImportHandler.java:113)
        at
org.apache.solr.core.SolrResourceLoader.inform(SolrResourceLoader.java:486)
        at org.apache.solr.core.SolrCore.<init>(SolrCore.java:588)
        at
org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:137)
        at
org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:83)
        at
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275)
        at
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)
        at
org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:108)
        at
org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3709)
------------------------------------------------------------------------------

Is "UniqueKey" in schema still optional in solr 1.4? Is "pk" attribute in
still optional in solr 1.4 DataImportHandler entities?  As I can see in
org.apache.solr.handler.dataimport.DataImporter class source exception
allways occure when UniqueKey not specified for index schema.

Re: Is "UniqueKey" in schema and "pk" attribute for DataimportHandler entities still optional in solr 1.4?

Posted by Chris Hostetter <ho...@fucit.org>.
: I allways build solr index from scratch, so I don't have neither "pk"
: attribute in "entity" tag (dataconfig.xml file) nor "UniqueKey" in index
: schema. When I updated solr from 1.3 to 1.4 I got the following exception
: during solr initialization:

This is in fact a bug in Solr 1.4...
https://issues.apache.org/jira/browse/SOLR-1638

...
: Is "UniqueKey" in schema still optional in solr 1.4? Is "pk" attribute in
: still optional in solr 1.4 DataImportHandler entities?  As I can see in

It is (suppose to be) optional.  Some functionality requires is 
(QueryElevationComponent) but DataImportHandler is not (suppose to be) one 
of them.


-Hoss