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

Add narrow API for loading stored fields, to replace FieldSelector

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • Field Type branch
    • core/index
    • None
    • New

    Description

      I think we should "invert" the FieldSelector API, with a "push" API
      whereby FieldsReader invokes this API once per field in the document
      being visited.

      Implementations of the API can then do arbitrary things like save away
      the field's size, load the field, clone the IndexInput for later lazy
      loading, etc.

      This very thin API would be a mirror image of the very thin index time
      API we now have (IndexableField) and, importantly, it would have no
      dependence on our "user space" Document/Field/FieldType impl, so apps
      are free to do something totally custom.

      After we have this, we should build the "sugar" API that rebuilds a
      Document instance (ie IR.document(int docID)) on top of this new thin
      API. This'll also be a good test that the API is sufficient.

      Relevant discussions from IRC this morning at
      http://colabti.org/irclogger/irclogger_log/lucene-dev?date=2011-07-13#l76

      Attachments

        1. LUCENE-3309.patch
          177 kB
          Michael McCandless
        2. LUCENE-3309.patch
          140 kB
          Michael McCandless
        3. LUCENE-3309.patch
          21 kB
          Michael McCandless

        Activity

          People

            Unassigned Unassigned
            mikemccand Michael McCandless
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: