Lucene - Core
  1. Lucene - Core
  2. LUCENE-4695

Add utility class for getting live values for a given field during NRT indexing

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.2, Trunk
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      This is a simple utility/wrapper class, that holds the field
      values for recently indexed documents until the NRT reader has
      refreshed, and exposes a "get" API to get the last indexed value per
      id.

      For example one could use this to look up the "version" field for a
      given id, even when that id was just indexed and not yet visible in
      the NRT reader.

      The implementation is fairly simple: it just watches the gen coming
      out of NRTManager and updates/prunes accordingly.

      The class is abstract: you must subclass it and impl the lookupFromSearcher
      method...

      1. LUCENE-4695.patch
        16 kB
        Michael McCandless
      2. LUCENE-4695.patch
        13 kB
        Michael McCandless

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Michael McCandless
            Reporter:
            Michael McCandless
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development