Re: Update partial document

2018-09-11 Thread Vincenzo D'Amore
Hi Mikhail, Shawn, thanks for your prompt answer. The problem is that the indexed documents have dozen of fields and usually they are different for each document. For example document id 1 has few generic fields like title, description and all the attributes like attr_1224, attr_4343, attr_4454,

Re: Update partial document

2018-09-11 Thread Shawn Heisey
On 9/11/2018 10:23 AM, Vincenzo D'Amore wrote: I suppose to be able to remove attr_1 and add attr_3 with one atomic update. Like this: curl -X POST -H 'Content-Type: application/json' ' http://localhost:8983/solr/gettingstarted/update?versions=true&commit=true' --data-binary ' [ {

Re: Update partial document

2018-09-11 Thread Mikhail Khludnev
Hello, Vincenzo. What about adding 1 into "attr_" : [ "set" : null ], ? On Tue, Sep 11, 2018 at 7:23 PM Vincenzo D'Amore wrote: > Hi Solr gurus :) > > I have a delicious question (that I'm struggling with), really hope that > someone can help me. > > There is a document with many fields bu

Re: update partial document

2006-09-18 Thread Simon Willnauer
I'm not into the code of Solr at all but I know that Solr is based on the lucene core which has no kind of update mechanism. To update a document using lucene you have to delete and reinsert the document. That might be the reason for the solr behaviour as well. You should consider that lucene is