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

Extract interface from IndexWriter

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Won't Fix
    • 2.0.0
    • None
    • core/index
    • None

    Description

      org.apache.lucene.index.IndexWriter should probably implement an interface to allow us to more easily write unit tests that use it. As it stands, it's a complex class that's hard to stub/mock.

      For example, an interface which had methods such as addDocument(), close() and optimize().

      Attachments

        1. InterfaceIndexWriter.java
          5 kB
          Karl Wettin

        Activity

          People

            Unassigned Unassigned
            issues.apache.org@chasmcity.com Kenny MacLeod
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: