Re: Replacing a group of documents (Delete/Insert) without a query on the index ever showing an empty list (Docs)

2015-03-27 Thread Shawn Heisey
On 3/27/2015 7:07 AM, Russell Taylor wrote: Hi Shawn, thanks for the quick reply. I've looked at both methods and I think that they won't work for a number of reasons: 1) uniqueKey: I could use the uniqueKey and overwrite the original document but I need to remove the documents which

RE: Replacing a group of documents (Delete/Insert) without a query on the index ever showing an empty list (Docs)

2015-03-27 Thread Russell Taylor
Hi Shawn, thanks for the quick reply. I've looked at both methods and I think that they won't work for a number of reasons: 1) uniqueKey: I could use the uniqueKey and overwrite the original document but I need to remove the documents which are not on my new input list and the issue with the

RE: Replacing a group of documents (Delete/Insert) without a query on the index ever showing an empty list (Docs)

2015-03-27 Thread Russell Taylor
Yes that works and now I have a better understanding of the soft and hard commits to boot. Thanks again Shawn. Russ. -Original Message- From: Shawn Heisey [mailto:apa...@elyograg.org] Sent: 27 March 2015 13:22 To: solr-user@lucene.apache.org Subject: Re: Replacing a group of

Re: Replacing a group of documents (Delete/Insert) without a query on the index ever showing an empty list (Docs)

2015-03-27 Thread Erick Erickson
You can simplify things a bit by indexing a batch number guaranteed to be different between two runs for the same keyField. In fact I'd make sure it was unique amongst all my runs. Simplest is a timestamp (assuming you don't start two batches within a millisecond!). So it looks like this. get a

Re: Replacing a group of documents (Delete/Insert) without a query on the index ever showing an empty list (Docs)

2015-03-26 Thread Shawn Heisey
On 3/26/2015 9:53 AM, Russell Taylor wrote: I have an index which is made up of groups of documents, each group is defined by a field called keyField (keyField:A). I need to delete all the keyField:A documents and replace them with a brand new set without the index ever returning zero