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 Steve Pruitt <bp...@opentext.com> on 2018/02/06 15:06:59 UTC

RE: [EXTERNAL] - Re: analysis error - cannot change numBytes from 4 to 8

Ah.  You are right.  I should simply have deleted collection / start a new index.  So many details to remember, but I am getting there.

Thanks.

-S

-----Original Message-----
From: Erick Erickson [mailto:erickerickson@gmail.com] 
Sent: Monday, February 05, 2018 4:49 PM
To: solr-user <so...@lucene.apache.org>
Subject: [EXTERNAL] - Re: analysis error - cannot change numBytes from 4 to 8

Steve:

Did this work in the past but just stopped? If so, did you change your schema at all?

If you changed your schema at all, you probably have to reindex from scratch. However, you _must_ be absolutely sure you've removed all traces of your old index, I usually just create a new colletion to test.

Finally you say "it's potentially multivalued". So you have to specify the field multiple times, as:
<field name="ani">6157731300</field>
<field name="ani">6157731301</field>

NOT
<field name="ani">6157731300 6157731301</field>

Best,
Erick

On Mon, Feb 5, 2018 at 9:15 AM, Steve Pruitt <bp...@opentext.com> wrote:
> I have a collection with a field defined as plongs.  The field schema 
> is:  <field name="ani" type="plongs" multiValued="true" indexed="true" 
> required="false" stored="true"/>
>
> For each document to add, I build up a HashMap of field values.   Since its multi-valued field, I create an ArrayList of type Long and add the values to it.  The ArrayList is added to the HashMap.
> Next, I create a SolrInputDocument from the HashMap.  I add each SolrInputDocument to a Collection of type SolrInputDocument.
>
> To update, I call  add on my CloudSolrClient instance with the collection.
>
> I'm running with test documents and each document has the same value:  <field name="ani">6157731300</field>.  Its potentially multivalued.
>
> I get this exception:
>
> Request to collection [explore] failed due to (400) org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException: Error from server at https://urldefense.proofpoint.com/v2/url?u=http-3A__myHost-3A8983_solr_explore-5Fshard2-5Freplica-5Fn2&d=DwIFaQ&c=ZgVRmm3mf2P1-XDAyDsu4A&r=ksx9qnQFG3QvxkP54EBPEzv1HHDjlk-MFO-7EONGCtY&m=ea33l6WtbB30cRxyQopTfNuTdTsGLcdTk91u_d689zQ&s=ijuMqXMYX6BpdiK9LAV5WJtiBNJVw7nxlMFToiS8Rzg&e=: Exception writing document id 1427388717...1343947742 to the index; possible analysis error: cannot change point numBytes from 4 to 8 for field="ani"
>
> Not sure what this error means exactly.
>
>
> Thanks.
>
> -S