Re: How to restore corrupted index

2008-10-17 Thread mahdi yari
just one IndexWriter writes on Index and after a specific time(like one day or one week etc), i create a new IndexWriter on new Directory and another thread try to optimize old IndexWirter. On Thu, Oct 16, 2008 at 5:25 PM, Michael McCandless < [EMAIL PROTECTED]> wrote: > > Can you post the full t

Re: Equal distribution over a field

2008-10-17 Thread mahdi yari
i think you can use SortComparatorSource to control on sort of documents. but i can not understand your problem correctly On Thu, Oct 16, 2008 at 6:14 PM, Anselmo <[EMAIL PROTECTED]>wrote: > > I am using Lucene to search for products in an online-shop with several > shops, brands etc. > > Is it

Re: How to restore corrupted index

2008-10-17 Thread Michael McCandless
When you run the optimize, is it with the already opened IndexWriter on the old directory? Do you use the default locking impl. in Directory (SimpleFSLockFactory)? Are you changing the lock directory, or ever forcefully removing the lock file (or calling IndexReader/ Writer#unlock)? M

Re: How to restore corrupted index

2008-10-17 Thread mahdi yari
i use SimpleFSLockFactory and optimized opened IndexWriter, but i use api to forcefully removing the lock file. this missing file, just occurs in sometimes not always?? On Fri, Oct 17, 2008 at 12:41 PM, Michael McCandless < [EMAIL PROTECTED]> wrote: > > When you run the optimize, is it with the

Re: I am not able to run Lucene 2.4 Demo

2008-10-17 Thread prabina pattanayak
what i observed is that it creates the index folder, but that is empty. it should have one/two file named segments.gen and segments_x(any no.) . but these two files are not being created inside the index folder. that's why it is throwing the exception message: no segments* file found in [EMAIL PROT