Re: add and then delete same document before commit,

2015-11-18 Thread Matteo Grolla
Thanks Erik, I observed the wrong behaviour on 4.6 in a controlled environment with a very simple test case, so It's was probably a bug (or I was drunk ;-) ) Really thanks again!!! 2015-11-18 17:40 GMT+01:00 Erick Erickson : > Then that was probably a bug in 4.6. There's a lot > of work that

Re: add and then delete same document before commit,

2015-11-18 Thread Erick Erickson
Then that was probably a bug in 4.6. There's a lot of work that's been done since then, and distributed updates that are mixed like this are particularly "interesting". So you should be able to count on this. One other possibility: Is it possible that this was a false failure in 4.6 and a commit

Re: add and then delete same document before commit,

2015-11-18 Thread Matteo Grolla
Thanks Shawn, I'm aware that solr isn't transactional and I don't need this property: a single application is indexing. With solr 4.6 I was noting a different behaviour, with 4.10 I'm observing the desired one. I'd like to know If I can count on this behaviour to be maintained by successive solr

Re: add and then delete same document before commit,

2015-11-18 Thread Shawn Heisey
On 11/18/2015 8:21 AM, Matteo Grolla wrote: > On Solr 4.10.3 I'm noting a different (desired) behaviour > > 1) add document x > 2) delete document x > 3) commit > > document x doesn't get indexed. If the last operation for document X is to delete it, then it will be gone after the commit and not

Re: add and then delete same document before commit,

2015-11-18 Thread Matteo Grolla
On Solr 4.10.3 I'm noting a different (desired) behaviour 1) add document x 2) delete document x 3) commit document x doesn't get indexed. The question now is: Can I count on this behaviour or is it just incidental? 2014-11-05 22:21 GMT+01:00 Matteo Grolla : > Perfectly clear, > thanks

Re: add and then delete same document before commit,

2014-11-05 Thread Matteo Grolla
Perfectly clear, thanks a lot! Il giorno 05/nov/2014, alle ore 13:48, Jack Krupansky ha scritto: > Document x doesn't exist - in terms of visibility - until the commit, so the > delete will no-op since a query of Lucene will not "see" the uncommitted new > document. > > -- Jack Krupans

Re: add and then delete same document before commit,

2014-11-05 Thread Jack Krupansky
Document x doesn't exist - in terms of visibility - until the commit, so the delete will no-op since a query of Lucene will not "see" the uncommitted new document. -- Jack Krupansky -Original Message- From: Matteo Grolla Sent: Wednesday, November 5, 2014 4:47 AM To: solr-user@lucene.

Re: add and then delete same document before commit,

2014-11-05 Thread Alexandre Rafalovitch
Do you have soft commits enabled by any chance in solrconfig.XML? Regards, Alex On 05/11/2014 4:48 am, "Matteo Grolla" wrote: > Can anyone tell me the behavior of solr (and if it's consistent) when I do > what follows: > 1) add document x > 2) delete document x > 3) commit > > I've tried wit