[jira] [Updated] (LUCENE-4695) Add utility class for getting live values for a given field during NRT indexing
[ https://issues.apache.org/jira/browse/LUCENE-4695?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Michael McCandless updated LUCENE-4695: --- Attachment: LUCENE-4695.patch New patch, simplifying the approach (thanks Rob!): now you don't have to use NRTManager; any ReferenceManagerIndexSearcher will do. This also reduced RAM required per buffered doc since last reopen ... beefed up test a bit. I think it's ready. Add utility class for getting live values for a given field during NRT indexing --- Key: LUCENE-4695 URL: https://issues.apache.org/jira/browse/LUCENE-4695 Project: Lucene - Core Issue Type: Improvement Reporter: Michael McCandless Assignee: Michael McCandless Fix For: 4.2, 5.0 Attachments: LUCENE-4695.patch, LUCENE-4695.patch 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... -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Updated] (LUCENE-4695) Add utility class for getting live values for a given field during NRT indexing
[ https://issues.apache.org/jira/browse/LUCENE-4695?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Michael McCandless updated LUCENE-4695: --- Issue Type: Improvement (was: Bug) Add utility class for getting live values for a given field during NRT indexing --- Key: LUCENE-4695 URL: https://issues.apache.org/jira/browse/LUCENE-4695 Project: Lucene - Core Issue Type: Improvement Reporter: Michael McCandless Assignee: Michael McCandless Fix For: 4.2, 5.0 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... -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Updated] (LUCENE-4695) Add utility class for getting live values for a given field during NRT indexing
[ https://issues.apache.org/jira/browse/LUCENE-4695?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Michael McCandless updated LUCENE-4695: --- Attachment: LUCENE-4695.patch Patch, with a couple of nocommits but I think it's close ... Add utility class for getting live values for a given field during NRT indexing --- Key: LUCENE-4695 URL: https://issues.apache.org/jira/browse/LUCENE-4695 Project: Lucene - Core Issue Type: Improvement Reporter: Michael McCandless Assignee: Michael McCandless Fix For: 4.2, 5.0 Attachments: LUCENE-4695.patch 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... -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org