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

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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.2, 6.0
    • None
    • None
    • 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...

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: