Re: duplicate unique key after partial update in solr 4.10

2014-10-06 Thread Mikhail Khludnev
It seems like by-design https://issues.apache.org/jira/browse/SOLR-5211 you can't update a parent doc from the block. On Tue, Oct 7, 2014 at 9:44 AM, Ali Nazemian wrote: > The list of docs before do partial update: > > product01 > car > product >

Re: duplicate unique key after partial update in solr 4.10

2014-10-06 Thread Ali Nazemian
The list of docs before do partial update: product01 car product part01 wheels part part02 engine part

Re: duplicate unique key after partial update in solr 4.10

2014-10-06 Thread Alexandre Rafalovitch
Can you upload the update documents then (into a Gist or similar). Just so that people didn't have to re-imagine exact steps. Because, if it fully checks out, it might be a bug and the next step would be creating a JIRA ticket. Regards, Alex. Personal: http://www.outerthoughts.com/ and @arafalo

Re: duplicate unique key after partial update in solr 4.10

2014-10-06 Thread Ali Nazemian
Dear Alex, Hi, LOL, yeah I am sure. You can test it yourself. I did that on default schema too. The results are same! Regards. On Mon, Oct 6, 2014 at 4:20 PM, Alexandre Rafalovitch wrote: > A stupid question: Are you sure that what schema thinks your uniqueId > is - is the uniqueId in your setup

Re: duplicate unique key after partial update in solr 4.10

2014-10-06 Thread Alexandre Rafalovitch
A stupid question: Are you sure that what schema thinks your uniqueId is - is the uniqueId in your setup? Also, that you are not somehow using the flags to tell Solr to ignore duplicates? Regards, Alex. Personal: http://www.outerthoughts.com/ and @arafalov Solr resources and newsletter: http://

Re: Duplicate Unique Key

2014-04-08 Thread Simon
MergingIndex is not the case here as I am not doing that. Even the issue is gone for now, it is not a relief for me as I am not sure how to explain this to others (peer, boss and user). I am thinking of implement a watch dog to check whenever the total Solr documents exceeds the number of items i

Re: Duplicate Unique Key

2014-04-08 Thread Erick Erickson
Right, this is expected behavior. The real problem isn't data loss, but how do you know which doc should "win"? Merging indexes is for a rather narrowly-defined use-case, it was never intended to remove duplicates. Best, Erick On Tue, Apr 8, 2014 at 12:36 AM, Cihad Guzel wrote: > Hi. > > I have

Re: Duplicate Unique Key

2014-04-08 Thread Cihad Guzel
Hi. I have encountered a similar situation when I tested solr merge index . ( http://mail-archives.apache.org/mod_mbox/lucene-solr-user/201403.mbox/%3CCAMrn6cOVWohxooRzZ8NmwYQUda2GW+gYD+edvC_b_kGT=f4...@mail.gmail.com%3E ) I have had duplicates. But the duplicates are gone when I post same data

Re: Duplicate Unique Key

2014-04-07 Thread Erick Erickson
Oh my yes! I feel a great sense of relief every time an intermittent problem becomes reproducible... The problem is not solved, but at least I have a good feeling that once I don't see it any more it's _really_ gone! One possibility is index merging, see: https://wiki.apache.org/solr/MergingSolrIn

Re: Duplicate Unique Key

2014-04-07 Thread Simon
Erick, It's indeed quite odd. And after I trigger re-indexing all documents (via the normal process of existing program). The duplication is gone. It can not be reproduced easily. But it did occur occasionally and that makes it a frustrating task to troubleshoot. Thanks, Simon -- View this

Re: Duplicate Unique Key

2014-04-07 Thread Erick Erickson
Hmmm, that's odd. I just tried it (admittedly with post.jar rather than SolrJ) and it works just fine. what server are you using (e.g. CloudSolrServer)? And can you create a self-contained program that illustrates the problem? Best, Erick On Mon, Apr 7, 2014 at 8:50 AM, Simon wrote: > Hi all, >