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

Index, a new generalization super root

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Won't Fix
    • 2.0.0
    • None
    • core/index
    • None

    Description

      This update adds a new super class Index, extended by Directory. It allows for transparent communication between your application and the persistency mechanism. It takes issue 550 one step closer to backwards compability.

      • Term and Document are no longer final classes.
      • InterfaceIndexWriter

      I also added these two in the Index.

      abstract index.openIndexWriter()
      abstract index.openIndexReader();

      There is some bonus material that use this:

      • Decorators for
      • Index
      • InterfaceIndexWriter
      • IndexReader
      • IndexSearcher
      • NotifiableIndex, adds notification of changes to any Index.
      • CreateListener
      • DeleteListener
      • OptimizationListener (not implemented)
      • ContentUpdateListener, reacts to any change of the index. Optimized for some implementations.
      • AutofreshedSearcher, contains a searcher that is always up to date with the index and have a buffer with old searchers that will be closed when nobody is using them anymore (hopefully).

      Attachments

        1. index.tar
          20 kB
          Karl Wettin
        2. indexbonus.tar
          40 kB
          Karl Wettin

        Issue Links

          Activity

            People

              Unassigned Unassigned
              karl.wettin Karl Wettin
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: