Re: IndexCommit.delete() outside of IndexDeletionPolicy

2012-06-06 Thread Michael McCandless
I think this use case makes sense; such logic (for a distributed / ref counted deletion policy) would make a nice contribution ... it's the "proper" way to delete commits when multiple nodes are in use (vs eg using a timeout deletion policy). You can actually do it today: call IndexWriter.deleteUn

IndexCommit.delete() outside of IndexDeletionPolicy

2012-06-06 Thread Colin Goodheart-Smithe
I was looking at the Lucene API for IndexCommit and noticed that the JavaDoc states that *'Decision that a commit-point should be deleted is taken by the IndexDeletionPolicy in effect and therefore this s

Re: Lucene Document Uniqueness question

2012-06-06 Thread Konstantyn Smirnov
you can use aggregation for that. dump a collection of prices as a field with multiple values into a document //pseudo-code def doc = new Document(...) doc.add new Field( 'id', id ) doc.add new Field( 'price', price1 ) doc.add new Field( 'price', price2 ) doc.add new Field( 'price', price3 ) inde