lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian López Espínola <penyask...@gmail.com>
Subject ERROR: multiple values encountered for non multiValued copy field
Date Fri, 06 Nov 2009 06:26:33 GMT
Hi,

I'm using solr with solrj and when I specify a field to copy in my
schema it stops working with the exception:


org.apache.solr.client.solrj.SolrServerException:
org.apache.solr.client.solrj.SolrServerException:
org.apache.solr.common.SolrException: ERROR: multiple values
encountered for non multiValued copy field all: xxxx
	at org.apache.solr.client.solrj.embedded.EmbeddedSolrServer.request(EmbeddedSolrServer.java:161)
	at org.apache.solr.client.solrj.request.UpdateRequest.process(UpdateRequest.java:217)
	at org.apache.solr.client.solrj.SolrServer.add(SolrServer.java:63)
	at org.apache.solr.client.solrj.SolrServer.addBean(SolrServer.java:67)

My field 'all' is defined as follows:

   <field name="all" type="text" indexed="true" stored="false"
multiValued="false"/>

	<copyField source="summary" dest="all"/>	
	
	<copyField source="name" dest="all"/>	
	<copyField source="description" dest="all"/>	
	<copyField source="content" dest="all"/>	
	<copyField source="title" dest="all"/>

Those fields are:

	<field name="title" type="string" indexed="true" stored="true"
required="true" />
	<field name="summary" type="string" indexed="true" stored="true" />
	<field name="content" type="string" indexed="true" stored="false" />
	<field name="name" type="string" indexed="true" stored="true"  />
	<field name="description" type="string" indexed="true" stored="false" />

If I remove the
	<copyField source="summary" dest="all"/>	
everything works fine.


Any hint? TIA

-- 
Cheers,

Christian López Espínola <penyaskito>

Mime
View raw message