Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-385

[PATCH] don't delete all files in index directory on index creation

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • core/index
    • None
    • Operating System: other
      Platform: Other

    • 34695

    Description

      Many people use Lucene to index a part of their file system. The chance that
      you some day mix up index directory and document directory isn't that bad.
      Currently Lucene will delete all files in the index directory when the
      create paramater passed to IndexWriter is true, thus deleting your documents
      if you mixed up the parameters. I'll attach a patch that fixes
      this. Any objections?

      Attachments

        Activity

          People

            daniel.naber@t-online.de Daniel Naber
            daniel.naber@t-online.de Daniel Naber
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: