with true:
i finding a serious problem when i need new index please help..
but how can ikeep chnaging the true flase option..
:(
please help me...:(
Exception in thread "main" java.io.IOException: Cannot delete _17.cfs
        at org.apache.lucene.store.FSDirectory.create(FSDirectory.java:144)
        at org.apache.lucene.store.FSDirectory.<init>(FSDirectory.java:128)
        at org.apache.lucene.store.FSDirectory.getDirectory(FSDirectory.java
:102)
        at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:193)


False
Exception in thread "main" java.io.IOException: Lock obtain timed out:
[EMAIL PROTECTED]:\DOCUME~1\ANJANA\LOCALS~1\Temp\lucene-
3ca21f86af4e6d9f86b82f8f13be98e4-write.lock
        at org.apache.lucene.store.Lock.obtain(Lock.java:58)
        at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:223)
        at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:193)
        at com.cecilia.wim.process.Indexer.index(Indexer.java:25)
        at com.cecilia.wim.process.Indexer.main(Indexer.java:60)


On Jan 28, 2008 3:22 AM, Erick Erickson <[EMAIL PROTECTED]> wrote:

> Set the parameter to false as per the documentation....
>
> Erick
>
> On Jan 27, 2008 5:11 AM, anjana m <[EMAIL PROTECTED]> wrote:
>
> > yes i dont want the old index to be deletd since its running on my app
> > server..
> > any suggestion..?
> >
> > On Jan 27, 2008 3:07 PM, Daniel Naber <[EMAIL PROTECTED]>
> > wrote:
> >
> > > On Sonntag, 27. Januar 2008, anjana m wrote:
> > >
> > > >         IndexWriter writer = new IndexWriter(indexDir, new
> > > > StandardAnalyzer(), true);
> > >
> > > The true parameter means that the old index will be deleted, is that
> > your
> > > problem?
> > >
> > > Regards
> > >  Daniel
> > >
> > > --
> > > http://www.danielnaber.de
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
>

Reply via email to