Delete all indices in Lucene.net

前端 未结 4 922
栀梦
栀梦 2021-01-18 02:50

I want to delete all the previously created indices. I am using Lucene.net.

I tried the following:

Term term = new Term         


        
4条回答
  •  鱼传尺愫
    2021-01-18 03:27

    although the thread is old i think it's better to give answer.. might be useful for somebody else. deleteAll() method of IndexWriter can be used to delete all documents indexed.

提交回复
热议问题