Re: BlockJoinQuery Clarification

2012-08-02 Thread Michael McCandless
Open an IndexWriter with OpenMode.CREATE, or call IndexWriter.deleteAll on an already open IndexWriter. Mike McCandless http://blog.mikemccandless.com On Thu, Aug 2, 2012 at 4:28 PM, developer3459 wrote: > Is there an quick/easy way to delete the entire collection at once? Im > looking to delet

Re: BlockJoinQuery Clarification

2012-08-02 Thread developer3459
Is there an quick/easy way to delete the entire collection at once? Im looking to delete and replace the entire collection in one fell swoop. -- View this message in context: http://lucene.472066.n3.nabble.com/BlockJoinQuery-Clarification-tp3848728p3998902.html Sent from the Lucene - Java User

Re: BlockJoinQuery Clarification

2012-08-02 Thread Michael McCandless
You must delete all children when you delete the parent. I believe you can delete individual children and leave the parent undeleted. Mike McCandless http://blog.mikemccandless.com On Thu, Aug 2, 2012 at 4:03 PM, developer3459 wrote: > > Is there a way to delete a parent doc from the collectio

Re: BlockJoinQuery Clarification

2012-08-02 Thread developer3459
Is there a way to delete a parent doc from the collection, or delete a child doc from the collection? If so, will deleting the parent doc of a collection orphan the associated child docs or will they automatically be deleted as well? thanks -D -- View this message in context: http://lucene.4

Re: BlockJoinQuery Clarification

2012-03-22 Thread Michael McCandless
You have to replace all documents in the block (1 parent, 4 children in your example) to update any of the documents... only updating the child (or child + parent) will break the join... There's also query-time joining coming in 3.6.0. Mike McCandless http://blog.mikemccandless.com On Thu, Mar