Return-Path: X-Original-To: apmail-lucene-dev-archive@www.apache.org Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 267DD9F75 for ; Thu, 9 Feb 2012 16:48:27 +0000 (UTC) Received: (qmail 4793 invoked by uid 500); 9 Feb 2012 16:48:25 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 4543 invoked by uid 500); 9 Feb 2012 16:48:24 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 4528 invoked by uid 99); 9 Feb 2012 16:48:24 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Feb 2012 16:48:24 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Feb 2012 16:48:23 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id A79331ADED4 for ; Thu, 9 Feb 2012 16:48:03 +0000 (UTC) Date: Thu, 9 Feb 2012 16:48:03 +0000 (UTC) From: "Eks Dev (Commented) (JIRA)" To: dev@lucene.apache.org Message-ID: <1324118270.19816.1328806083688.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1077931488.15202.1328716440544.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (LUCENE-3760) Cleanup DR.getCurrentVersion/DR.getUserData/DR.getIndexCommit().getUserData() MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/LUCENE-3760?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13204634#comment-13204634 ] Eks Dev commented on LUCENE-3760: --------------------------------- I have a use case for CommitUserData and I think standard solr DIH could benefit from it as well. I use it to persist current status of the max Document id (user id, not lucene docid) to know what I have indexed so far (all update commands are stored in the database and have simple incrementing counter). This makes incremental update process "restart- and rollback- safe" as it gets written on lucene commit and read on startup. I do not index this field (not to pollute term dictionary) and I need only to keep max value of it. I find it hugely useful, but if you have better ideas on how to safely persist max/min value of the field I am all ears. Last time I checked, solr DIH used its own file in cfg directory to persist max(timestamp), which is kind of risky as it is not in sync with lucene commit point under all scenarios. I think I even opened an isue on solr jira to expose "user commit data" feature to solr, but I am missing good ideas on how to expose it to solr users (max/min/avg field tracking maybe)... Cheers, eks > Cleanup DR.getCurrentVersion/DR.getUserData/DR.getIndexCommit().getUserData() > ----------------------------------------------------------------------------- > > Key: LUCENE-3760 > URL: https://issues.apache.org/jira/browse/LUCENE-3760 > Project: Lucene - Java > Issue Type: Improvement > Reporter: Michael McCandless > Assignee: Michael McCandless > Fix For: 3.6, 4.0 > > Attachments: LUCENE-3760.patch, LUCENE-3760.patch > > > Spinoff from Ryan's dev thread "DR.getCommitUserData() vs DR.getIndexCommit().getUserData()"... these methods are confusing/dups right now. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org