Omri - you need to indicate to Solr that your at_location field can accept 
multiple values.  Add this to the field declaration:

        multiValued="true"

See this reference for more information / options:

http://wiki.apache.org/solr/SchemaXml


Bob Sandiford | Lead Software Engineer | SirsiDynix
P: 800.288.8020 X6943 | bob.sandif...@sirsidynix.com
www.sirsidynix.com


> -----Original Message-----
> From: Omri Cohen [mailto:omri...@gmail.com]
> Sent: Wednesday, June 15, 2011 8:00 AM
> To: solr-user@lucene.apache.org
> Subject: Copying few field using copyField to non multiValued field
> 
> Hello all,
> 
> in my schema.xml i have this fields:
> 
>    <field name="at_location"               type="text" indexed="index"
> stored="true" required="false" />
>    <field name="at_country"               type="text" indexed="index"
> stored="true" required="false" />
>    <field name="at_city"                   type="text" indexed="index"
> stored="true" required="false" />
>    <field name="at_state"               type="text" indexed="index"
> stored="true" required="false" />.
> 
> I am trying to do the following:
> 
> <copyField source="at_city" dest="at_location"/>
> <copyField source="at_state" dest="at_location"/>
> <copyField source="at_country" dest="at_location"/>
> 
> I am getting the next exception:
> 
> ERROR: multiple values encountered for non multiValued copy field
> at_location
> 
> some one has any idea, how I solve this without changing at_location to
> multiField?
> 
> thanks
> 
> *Omri Cohen*
> 
> 
> 
> Co-founder @ yotpo.com | o...@yotpo.com | +972-50-7235198 | +972-3-
> 6036295
> 
> 
> 
> 
> My profiles: [image: LinkedIn] <http://www.linkedin.com/in/omric>
> [image:
> Twitter] <http://www.twitter.com/omricohe> [image:
> WordPress]<http://omricohen.me>
>  Please consider your environmental responsibility. Before printing
> this
> e-mail message, ask yourself whether you really need a hard copy.
> IMPORTANT: The contents of this email and any attachments are
> confidential.
> They are intended for the named recipient(s) only. If you have received
> this
> email by mistake, please notify the sender immediately and do not
> disclose
> the contents to anyone or make copies thereof.
> Signature powered by
> <http://www.wisestamp.com/email-
> install?utm_source=extension&utm_medium=email&utm_campaign=footer>
> WiseStamp<http://www.wisestamp.com/email-
> install?utm_source=extension&utm_medium=email&utm_campaign=footer>

Reply via email to