I haven't seen this specific error before, but my guess would be that
your 'schemaless' mode has created a field of a particular type which
does not match it's later usage.

So, it may have seen '3' and assumed integers and now you are giving it 'four'.

I would pull that specific record up and check it's fields against the
schema definition created so far (in Admin UI). Look for type mismatch
and - possibly - for single/multiValued discrepancy (single in schema,
multiValued in practice)

Regards,
   Alex.
P.s. Schemaless mode is mostly for rapid development/experimentation.
In production, you want to use explicit schema and dynamic fields.
Personal: http://www.outerthoughts.com/ and @arafalov
Solr resources and newsletter: http://www.solr-start.com/ and @solrstart
Solr popularizers community: https://www.linkedin.com/groups?gid=6713853


On 18 November 2014 12:03, AJ Lemke <aj.le...@securitylabs.com> wrote:
> Hi All,
>
> I am getting an error when using solrj to index records.
>
> Exception in thread "main" 
> org.apache.solr.client.solrj.impl.CloudSolrServer$RouteException: Exception 
> writing document id 529241050 to the index; possible analysis error.
>     at 
> org.apache.solr.client.solrj.impl.CloudSolrServer.directUpdate(CloudSolrServer.java:360)
>     at 
> org.apache.solr.client.solrj.impl.CloudSolrServer.request(CloudSolrServer.java:533)
>     at 
> org.apache.solr.client.solrj.request.AbstractUpdateRequest.process(AbstractUpdateRequest.java:124)
>     at org.apache.solr.client.solrj.SolrServer.add(SolrServer.java:68)
>     at Importer.commit(Importer.java:96)
>     at Importer.putData(Importer.java:81)
>     at Importer.main(Importer.java:25)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>     at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>     at java.lang.reflect.Method.invoke(Method.java:483)
>     at com.intellij.rt.execution.application.AppMain.main(AppMain.java:134)
> Caused by: 
> org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException: 
> Exception writing document id 529241050 to the index; possible analysis error.
>     at 
> org.apache.solr.client.solrj.impl.HttpSolrServer.executeMethod(HttpSolrServer.java:552)
>     at 
> org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:210)
>     at 
> org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:206)
>     at 
> org.apache.solr.client.solrj.impl.LBHttpSolrServer.doRequest(LBHttpSolrServer.java:340)
>     at 
> org.apache.solr.client.solrj.impl.LBHttpSolrServer.request(LBHttpSolrServer.java:301)
>     at 
> org.apache.solr.client.solrj.impl.CloudSolrServer$1.call(CloudSolrServer.java:341)
>     at 
> org.apache.solr.client.solrj.impl.CloudSolrServer$1.call(CloudSolrServer.java:338)
>     at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>     at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>     at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>     at java.lang.Thread.run(Thread.java:745)
>
> I am connecting to a local solrCloud instance (localhost:9983) and a 
> schemaless collection.
> Is this possible or do I have to use a schema?
>
> Thanks!
> AJ

Reply via email to