Re: Script to remove all index.* leftovers

2011-04-06 Thread Markus Jelsma
Yes my mistake, you're right about #1. On Wednesday 06 April 2011 05:25:50 William Bell wrote: > Thank you for pointing out #2. The commitsToKeep is interesting, but I > thought each commit would create a segment (before optimized) and be > self contained in the index.* directory? > > I would onl

Re: Script to remove all index.* leftovers

2011-04-05 Thread William Bell
Thank you for pointing out #2. The commitsToKeep is interesting, but I thought each commit would create a segment (before optimized) and be self contained in the index.* directory? I would only run this on the slave. Bill On Tue, Apr 5, 2011 at 2:54 PM, Markus Jelsma wrote: > Hi, > > This seem

Re: Script to remove all index.* leftovers

2011-04-05 Thread Markus Jelsma
Hi, This seems alright as it leaves the current index in place, doesn't mess with the spellchecker and leave the properties alone. But, there are two problems: 1. it doesn't take into account the commitsToKeep value set in the deletion policy, and; 2. it will remove any directory to which a cur