You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by simon litwan <si...@wyona.com> on 2008/09/04 09:17:27 UTC

delete/reset the index

hi all

i would like to delete the the index to allow to start reindexing from 
scratch.
is there a way to delete all entries in a index?

any hint is very appreciated.

simon

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Re: delete/reset the index

Posted by 叶双明 <ye...@gmail.com>.
Delete the index Directory in File System, I think this is the simpliest!!!

2008/9/4 simon litwan <si...@wyona.com>

> hi all
>
> i would like to delete the the index to allow to start reindexing from
> scratch.
> is there a way to delete all entries in a index?
>
> any hint is very appreciated.
>
> simon
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>

Re: delete/reset the index

Posted by simon litwan <si...@wyona.com>.
叶双明 schrieb:
> Agree with Michael McCandless!!  By that way,it is handling gracefully.
>   
thanks for your hints. both of you :)
will try how you suggested.

simon
> 2008/9/4 Michael McCandless <lu...@mikemccandless.com>
>
>   
>> If you're on Windows, the safest way to do this in general, if there is any
>> possibility that readers are still using the index, is to create a new
>> IndexWriter with create=true.  Windows does not let you remove open files.
>>  IndexWriter will gracefully handle failed deletes by retrying them over
>> time...
>>
>> Mike
>>
>>
>> simon litwan wrote:
>>
>>  hi all
>>     
>>> i would like to delete the the index to allow to start reindexing from
>>> scratch.
>>> is there a way to delete all entries in a index?
>>>
>>> any hint is very appreciated.
>>>
>>> simon
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
>>> For additional commands, e-mail: java-user-help@lucene.apache.org
>>>
>>>
>>>       
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
>> For additional commands, e-mail: java-user-help@lucene.apache.org
>>
>>
>>     
>
>   


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Re: delete/reset the index

Posted by 叶双明 <ye...@gmail.com>.
Agree with Michael McCandless!!  By that way,it is handling gracefully.

2008/9/4 Michael McCandless <lu...@mikemccandless.com>

>
> If you're on Windows, the safest way to do this in general, if there is any
> possibility that readers are still using the index, is to create a new
> IndexWriter with create=true.  Windows does not let you remove open files.
>  IndexWriter will gracefully handle failed deletes by retrying them over
> time...
>
> Mike
>
>
> simon litwan wrote:
>
>  hi all
>>
>> i would like to delete the the index to allow to start reindexing from
>> scratch.
>> is there a way to delete all entries in a index?
>>
>> any hint is very appreciated.
>>
>> simon
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
>> For additional commands, e-mail: java-user-help@lucene.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>

Re: delete/reset the index

Posted by Michael McCandless <lu...@mikemccandless.com>.
If you're on Windows, the safest way to do this in general, if there  
is any possibility that readers are still using the index, is to  
create a new IndexWriter with create=true.  Windows does not let you  
remove open files.  IndexWriter will gracefully handle failed deletes  
by retrying them over time...

Mike

simon litwan wrote:

> hi all
>
> i would like to delete the the index to allow to start reindexing  
> from scratch.
> is there a way to delete all entries in a index?
>
> any hint is very appreciated.
>
> simon
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org