lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Noble Paul നോബിള്‍ नोब्ळ् <noble.p...@corp.aol.com>
Subject Re: ERROR: multiple values encountered for non multiValued copy field
Date Fri, 06 Nov 2009 10:53:04 GMT
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
<penyaskito@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

Mime
View raw message