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=true' --data-binary ' [ { "id"

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

Update partial document

2018-09-11 Thread Vincenzo D'Amore
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 but I have to modify only few of them. I thought to use atomic update but it seems that I cannot replace an entire list of dynamic fields. Here I

update partial document

2006-09-18 Thread Brian Lucas
Hi, I wanted to inquire if anybody would find an update flag useful that only replaced the subset of data (ie a certain field) getting passed in, instead of the whole record. Pseudo-code for what I'm describing: id125125/id update-partialtrue/update-partial +

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