lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cool Coder <>
Subject How to delete old index
Date Sun, 25 Nov 2007 02:59:31 GMT
      I used have index refreshed in every 4 hr. However after each refresh, I can see two
index. I am not sure how can I delete old index.
  On starting of indexing process, I create Writer
  writer = new IndexWriter(luceneDirectory,false,luceneAnalyzer,true);
  At the end of Indexing process:
  and reopen the indexreader
  luceneDirectory = FSDirectory.getDirectory(indexPath);
  reader =;
  searcher = new IndexSearcher(reader);
  Is this the right way or I am missing something?
  Let me tell you that I dont want to update index rather I just want to delete the old index.
  Your help would be appreciated.
  - BR

Get easy, one-click access to your favorites.  Make Yahoo! your homepage.
  • Unnamed multipart/alternative (inline, 8-Bit, 0 bytes)
View raw message