You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@solr.apache.org by Sergio García Maroto <ma...@gmail.com> on 2022/03/10 15:03:31 UTC
Multivalued doc value field
Hi,
I am getting an error while doing a copy from a field to another but the
second field is a docValues which
I am using PersonIDSDV to run StreamingExpressions.
As I can see in this page I should be able use multivalued fields with
docValues.
https://solr.apache.org/guide/8_1/docvalues.html
Any ideas or ways to solve this?
*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"/>
Thanks a lot
Sergio
Re: Multivalued doc value field
Posted by Sergio García Maroto <ma...@gmail.com>.
Thanks Shawn.
I had to delte the collection and reindex all data.
On Thu, 10 Mar 2022 at 18:09, Shawn Heisey <ap...@elyograg.org> wrote:
> 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
>
>
Re: Multivalued doc value field
Posted by Shawn Heisey <ap...@elyograg.org>.
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