Schema requires uniqueID

41 views
Skip to first unread message

angel

unread,
Mar 12, 2015, 12:18:34 PM3/12/15
to cdk...@cloudera.org
I have created a collection but i do not need a certain id. What I have done to disable it is:

<field name="id" type="string" indexed="true" stored="true" required="false" multiValued="false" />

in schema.xml and I have completely disabled  <!--<uniqueKey>id</uniqueKey>-->

Futhermore I have disabled the QueryElevator Component in solrconfig.xml
Although this works when importing things manually to solr when the data gets stream from the morphline solr sink i get an error

org.kitesdk.morphline.api.MorphlineCompilationException: Solr schema.xml must contain a required unique key field near:

Is there any way to disable unique key completely or do i have to use it with morphline solr sink?

Wolfgang Hoschek

unread,
Mar 12, 2015, 1:33:18 PM3/12/15
to angel, cdk...@cloudera.org
SolrCloud (and hence Cloudera Search) requires an id in order to perform sharding. 

By the way, the following mailing list is more appropriate for questions related to Cloudera Search: https://groups.google.com/a/cloudera.org/forum/#!forum/search-user 

Please instead post there in the future.

Wolfgang.


--
You received this message because you are subscribed to the Google Groups "CDK Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cdk-dev+u...@cloudera.org.
For more options, visit https://groups.google.com/a/cloudera.org/d/optout.

Reply all
Reply to author
Forward
0 new messages