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

Remove IndexWriterConfig.clone

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 4.9, 6.0
    • core/index
    • None
    • New

    Description

      We originally added this clone to allow a single IWC to be re-used against more than one IndexWriter, but I think this is a mis-feature: it adds complexity to hairy classes (merge policy/scheduler, DW thread pool, etc.), I think it's buggy today.

      I think we should just disallow sharing: you must make a new IWC for a new IndexWriter.

      Attachments

        1. LUCENE-5708.patch
          36 kB
          Michael McCandless
        2. LUCENE-5708.patch
          33 kB
          Michael McCandless
        3. LUCENE-5708.patch
          0.7 kB
          Michael McCandless

        Issue Links

          Activity

            People

              mikemccand Michael McCandless
              mikemccand Michael McCandless
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: