Hi,
I am having mutivalued field "all" in my schema.xml . But it is not
identified and got below error.
Can anyone help me with this..
<schema name="DIT" version="1.1">
<types>
<fieldType name="string" class="solr.StrField" sortMissingLast="true"
omitNorms="true"/>
<fieldType name="text" class="solr.TextField"
positionIncrementGap="100"/>
<fieldType name="integer" class="solr.IntField" omitNorms="true"/>
</types>
<fields>
<field name="person_id" type="integer" indexed="true" stored="true"
multivalued="false" required="true"/>
<field name="fname" type="text" indexed="true" stored="true"
multivalued="false"/>
<field name="all" type="text" indexed="true" stored="true"
multivalued="true"/>
</fields>
<uniqueKey>person_id</uniqueKey>
<defaultSearchField>all</defaultSearchField>
<solrQueryParser defaultOperator="OR"/>
<copyField source="person_id" dest="all"/>
<copyField source="fname" dest="all"/>
</schema>
INFO: Time taken for getConnection(): 360
Mar 23, 2009 1:51:25 PM org.apache.solr.handler.dataimport.SolrWriter upload
WARNING: Error creating document :
SolrInputDocument[{fname=fname(1.0)={Peter}, person_id=person_id(1.0)={1}}]
org.apache.solr.common.SolrException: ERROR: multiple values encountered for
non multiValued copy field all: 1
at
org.apache.solr.update.DocumentBuilder.toDocument(DocumentBuilder.java:256)
at
org.apache.solr.update.processor.RunUpdateProcessor.processAdd(RunUpdateProc
essorFactory.java:59)
at
org.apache.solr.handler.dataimport.SolrWriter.upload(SolrWriter.java:67)
at
org.apache.solr.handler.dataimport.DataImportHandler$1.upload(DataImportHand
ler.java:263)
at
org.apache.solr.handler.dataimport.DocBuilder.buildDocument(DocBuilder.java:
377)
at
org.apache.solr.handler.dataimport.DocBuilder.doFullDump(DocBuilder.java:225
)
at
org.apache.solr.handler.dataimport.DocBuilder.execute(DocBuilder.java:167)
at
org.apache.solr.handler.dataimport.DataImporter.doFullImport(DataImporter.ja
va:323)
at
org.apache.solr.handler.dataimport.DataImporter.runCmd(DataImporter.java:381
)