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

Adding attributes to IndexFieldType

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 7.5
    • 7.7, 8.0
    • core/index
    • None
    • New, Patch Available

    Description

      Today, we can write a custom Field using custom IndexFieldType, but when the DefaultIndexingChain converts IndexFieldType to FieldInfo, only few key informations such as indexing options and doc value type are retained. The Codec gets the FieldInfo, but not the type details.
       
      FieldInfo has support for 'attributes' and it would be great if we can add 'attributes' to IndexFieldType also and copy it to FieldInfo's 'attribute'.
       
      This would allow someone to write a custom codec (extending docvalueformat for example) for only the 'special field' that he wants and delegate the rest of the fields to the default codec.

      Attachments

        1. 7x_LUCENE-8601.06.patch
          21 kB
          Murali Krishna P
        2. LUCENE-8601.06.patch
          20 kB
          Murali Krishna P
        3. LUCENE-8601.05.patch
          20 kB
          Murali Krishna P
        4. LUCENE-8601.04.patch
          7 kB
          Murali Krishna P
        5. LUCENE-8601.03.patch
          7 kB
          Murali Krishna P
        6. LUCENE-8601.02.patch
          7 kB
          Murali Krishna P
        7. LUCENE-8601.01.patch
          7 kB
          Murali Krishna P
        8. LUCENE-8601.patch
          6 kB
          Murali Krishna P

        Activity

          People

            Unassigned Unassigned
            muralikpbhat Murali Krishna P
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: