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

Create a move method in Directory.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • None
    • 4.9, 6.0
    • None
    • None
    • New

    Description

      I'd like to make a move method for directory.

      We already have a move for Solr in DirectoryFactory, but it seems it belongs at the directory level really.

      The default impl can do a copy and delete, but most implementations will be able to optimize to a rename.

      Besides the move we do for Solr (to move a replicated index into place), it would also be useful for another feature I'd like to add - the ability to merge an index with moves rather than copies. In some cases, you don't need/want to copy all the files and could just rename/move them.

      Attachments

        1. LUCENE-4746.patch
          1 kB
          Robert Muir
        2. LUCENE-4746.patch
          6 kB
          Robert Muir

        Issue Links

          Activity

            People

              markrmiller@gmail.com Mark Miller
              markrmiller@gmail.com Mark Miller
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: