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

Hashtable based Document

    XMLWordPrintableJSON

Details

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

    Description

      I've attached a Document based on a hashtable and a performance test case. It performs better in most cases (all but enumeration by my measurement), but likely uses a larger memory footprint. The Document testcase will fail since it accesses the "fields" variable directly and gets confused when it's not the list it expected it to be.

      If nothing else we would be interested in at least being able to extend Document, which is currently declared final. (Anyone know the performance gains on declaring a class final?) Currently we have to maintain a copy of lucene which has methods and classes definalized and overriden.

      There are other classes as well that could be declared non-final (Fieldable comes to mind) since it's possible to make changes for project specific situations in those aswell but that's off-topic.

      Attachments

        1. HashDocument.java
          11 kB
          Chris
        2. TestBenchDocuments.java
          6 kB
          Chris

        Activity

          People

            Unassigned Unassigned
            brogar Chris
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: