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

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: core/index
    • Labels:
      None
    • Environment:

      Operating System: other
      Platform: Other

    • Bugzilla Id:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: