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

[PATCH] Efficiently retrieve sizes of field values

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.1
    • Fix Version/s: None
    • Component/s: core/store
    • Labels:
      None

      Description

      Sometimes an application would like to know how large a document is before retrieving it. This can be important for memory management or choosing between algorithms, especially in cases where documents might be very large.

      This patch extends the existing FieldSelector mechanism with two new FieldSelectorResults: SIZE and SIZE_AND_BREAK. SIZE creates fields on the retrieved document that store field sizes instead of actual values. SIZE_AND_BREAK is especially efficient if one field comprises the bulk of the document size (e.g., the body field) and can thus be used as a reasonable size approximation.

        Attachments

        1. SizeFieldSelector.patch
          7 kB
          Chuck Williams

          Activity

            People

            • Assignee:
              gsingers Grant Ingersoll
              Reporter:
              manawiz Chuck Williams
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: