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 Christian López Espínola <pe...@gmail.com> on 2009/11/06 07:26:33 UTC
ERROR: multiple values encountered for non multiValued copy field
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>
Re: ERROR: multiple values encountered for non multiValued copy field
Posted by Noble Paul നോബിള് नोब्ळ् <no...@corp.aol.com>.
make the 'all' field multiValued
<field name="all" type="text" indexed="true" stored="false"
multiValued="true"/>
On Fri, Nov 6, 2009 at 11:56 AM, Christian López Espínola
<pe...@gmail.com> wrote:
> 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>
>
--
-----------------------------------------------------
Noble Paul | Principal Engineer| AOL | http://aol.com