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

        Uwe Schindler made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Hide
        Uwe Schindler added a comment -

        Closed after release.

        Show
        Uwe Schindler added a comment - Closed after release.
        Hide
        Commit Tag Bot added a comment -

        [branch_4x commit] Michael McCandless
        http://svn.apache.org/viewvc?view=revision&revision=1438731

        LUCENE-4695: add LiveFieldValues, to get current (live/real-time) values for fields indexed after the last NRT reopen

        Show
        Commit Tag Bot added a comment - [branch_4x commit] Michael McCandless http://svn.apache.org/viewvc?view=revision&revision=1438731 LUCENE-4695 : add LiveFieldValues, to get current (live/real-time) values for fields indexed after the last NRT reopen
        Michael McCandless made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Hide
        Commit Tag Bot added a comment -

        [trunk commit] Michael McCandless
        http://svn.apache.org/viewvc?view=revision&revision=1438721

        LUCENE-4695: add LiveFieldValues, to get current (live/real-time) values for fields indexed after the last NRT reopen

        Show
        Commit Tag Bot added a comment - [trunk commit] Michael McCandless http://svn.apache.org/viewvc?view=revision&revision=1438721 LUCENE-4695 : add LiveFieldValues, to get current (live/real-time) values for fields indexed after the last NRT reopen
        Michael McCandless made changes -
        Attachment LUCENE-4695.patch [ 12566213 ]
        Hide
        Michael McCandless added a comment -

        New patch, simplifying the approach (thanks Rob!): now you don't have to use NRTManager; any ReferenceManager<IndexSearcher> will do. This also reduced RAM required per buffered doc since last reopen ... beefed up test a bit. I think it's ready.

        Show
        Michael McCandless added a comment - New patch, simplifying the approach (thanks Rob!): now you don't have to use NRTManager; any ReferenceManager<IndexSearcher> will do. This also reduced RAM required per buffered doc since last reopen ... beefed up test a bit. I think it's ready.
        Michael McCandless made changes -
        Attachment LUCENE-4695.patch [ 12565362 ]
        Hide
        Michael McCandless added a comment -

        Patch, with a couple of nocommits but I think it's close ...

        Show
        Michael McCandless added a comment - Patch, with a couple of nocommits but I think it's close ...
        Michael McCandless made changes -
        Field Original Value New Value
        Issue Type Bug [ 1 ] Improvement [ 4 ]
        Michael McCandless created 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