lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rohana Rajapakse <>
Subject Issue with updating existing document (Solr-6.x/7.0)
Date Tue, 05 Apr 2016 12:07:21 GMT

I am trying to update the value of one field in an existing document, and it throws me the
exception given below.
For the update, I am using my own update handler which created a SolrInputDocument from and
Existing Solr Document.

I am using Solr6.x built from the source code obtained from github. All artefacts have the
version number 7.0.0

The SolrInputDocument looks like this:

id: [city business library]
nphraseusage: [stored<nphraseusage:1.0>]
keyid: [stored,indexed,tokenized,omitNorms,indexOptions=DOCS<keyid:10>]
nkeyid: [stored<nkeyid:10>]
keytype: [stored,indexed,tokenized,omitNorms,indexOptions=DOCS<keytype:autophrase>]
autosuggest: [stored,indexed,tokenized<autosuggest:city business library>]
autosuggest_edge: [stored,indexed,tokenized<autosuggest_edge:city business library>]
autosuggest_ngram: [stored,indexed,tokenized<autosuggest_ngram:city business library>]
phraselastdate: [2016-04-05 10:33:17.574]
phrasesig: [{add=6}]
_version_: [stored<_version_:1530766187073372160>]

I am simply calling super.processAdd(addUpdateCommand);
The exception seems to occur due to the use of partial update of "phrasesig" field.

Here is the Exception:

org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException: Error from server at
http://dodo:8983/solr/icm: TransactionLog doesn't know how to serialize class org.apache.lucene.document.StoredField;
try implementing ObjectResolver?
       at org.apache.solr.client.solrj.impl.HttpSolrClient.executeMethod(
       at org.apache.solr.client.solrj.impl.HttpSolrClient.request(
       at org.apache.solr.client.solrj.impl.HttpSolrClient.request(
       at org.apache.solr.client.solrj.SolrRequest.process(
       at org.apache.solr.client.solrj.SolrRequest.process(
       at com.gossinteractive.solr.RRSolrClient.addDocument2Updatehandler(
       at com.gossinteractive.solr.DocPhraseUpdateProcessorTest.addDocumentAndTheirPhrases(
       at com.gossinteractive.solr.DocPhraseUpdateProcessorTest.testAdd2Documents2(
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(
       at java.lang.reflect.Method.invoke(
       at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(
       at org.junit.runners.model.FrameworkMethod.invokeExplosively(
       at org.junit.internal.runners.statements.InvokeMethod.evaluate(
       at org.junit.internal.runners.statements.RunBefores.evaluate(
       at org.junit.internal.runners.statements.RunAfters.evaluate(
       at org.junit.runners.BlockJUnit4ClassRunner.runChild(
       at org.junit.runners.BlockJUnit4ClassRunner.runChild(
       at org.junit.runners.ParentRunner.runChildren(
       at org.junit.runners.ParentRunner.access$000(
       at org.junit.runners.ParentRunner$1.evaluate(
       at org.junit.internal.runners.statements.RunBefores.evaluate(
       at org.junit.internal.runners.statements.RunAfters.evaluate(
       at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(
       at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(
       at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(

Any help to resolve this is highly appreciated.

Registered Office: 24 Darklake View, Estover, Plymouth, PL6 7TL.
Company Registration No: 3553908

This email contains proprietary information, some or all of which may be legally privileged.
It is for the intended recipient only. If an addressing or transmission error has misdirected
this email, please notify the author by replying to this email. If you are not the intended
recipient you may not use, disclose, distribute, copy, print or rely on this email.

Email transmission cannot be guaranteed to be secure or error free, as information may be
intercepted, corrupted, lost, destroyed, arrive late or incomplete or contain viruses. This
email and any files attached to it have been checked with virus detection software before
transmission. You should nonetheless carry out your own virus check before opening any attachment.
GOSS Interactive Ltd accepts no liability for any loss or damage that may be caused by software

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message