On 3/10/22 08:03, Sergio García Maroto wrote:
*Error:*
Multiple values encountered for non multiValued copy field PersonIDSDV
*Schema*
<field name="DocPersonAttachS" type="int" indexed="true" stored="true"
multiValued="true"/>
<!-- Streammin Expressions-->
<field name="PersonIDSDV" type="int" indexed="true" stored="true"
docValues="true" multiValued="true" />
<copyField source="DocPersonAttachS" dest="PersonIDSDV"/>
Best guess: You changed the schema file so it's multiValued, but did
not reload the core.
Or maybe it's SolrCloud, and you changed the schema file on disk, but
didn't upload the changes to zookeeper, or didn't reload the collection
after uploading the changes.
The error is saying that the in-memory schema definition for that field
on that index is not multiValued.
If there are already documents in the index with values in that field
indexed without multiValued and you switched it to multiValued, then
you're going to have to completely reindex after completely deleting the
existing index directory. This is a Lucene docValues requirement, it
doesn't come from Solr.
Thanks,
Shawn