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

Make StoredFieldsFormat more configurable

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.1
    • 4.1
    • core/codecs
    • None
    • New

    Description

      The current StoredFieldsFormat are implemented with the assumption that only one type of StoredfieldsFormat is used by the index.
      We would like to be able to configure a StoredFieldsFormat per field, similarly to the PostingsFormat.
      There is a few issues that need to be solved for allowing that:
      1) allowing to configure a segment suffix to the StoredFieldsFormat
      2) implement SPI interface in StoredFieldsFormat
      3) create a PerFieldStoredFieldsFormat

      We are proposing to start first with 1) by modifying the signature of StoredFieldsFormat#fieldsReader and StoredFieldsFormat#fieldsWriter so that they use SegmentReadState and SegmentWriteState instead of the current set of parameters.

      Let us know what you think about this idea. If this is of interest, we can contribute with a first path for 1).

      Attachments

        1. LUCENE-4591.patch
          5 kB
          Adrien Grand
        2. LUCENE-4591.patch
          3 kB
          Renaud Delbru
        3. LUCENE-4591.patch
          1 kB
          Renaud Delbru
        4. PerFieldStoredFieldsFormat.java
          2 kB
          Renaud Delbru
        5. PerFieldStoredFieldsReader.java
          3 kB
          Renaud Delbru
        6. PerFieldStoredFieldsWriter.java
          6 kB
          Renaud Delbru

        Issue Links

          Activity

            People

              jpountz Adrien Grand
              renaud.delbru Renaud Delbru
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: