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

There may be can simpler in DefaultIndexingChain

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 8.2
    • None
    • core/index
    • New

    Description

       In  DefaultIndexingChain.processField()

      if (fieldType.stored()) {
        if (fp == null) {
          fp = getOrAddField(fieldName, fieldType, false);
        }
        if (fieldType.stored()) {
          String value = field.stringValue(); 
          ......
          try { 
            storedFieldsConsumer.writeField(fp.fieldInfo, field);
          } catch (Throwable th) {
            ......
          }
        }
      }
      

       If there has need to add the second if, because fieldType.stored() is executed before.

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              kkewwei kkewwei
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 50m
                  50m