Return-Path: Delivered-To: apmail-lucene-solr-dev-archive@locus.apache.org Received: (qmail 62669 invoked from network); 4 Feb 2007 09:00:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Feb 2007 09:00:39 -0000 Received: (qmail 94395 invoked by uid 500); 4 Feb 2007 09:00:46 -0000 Delivered-To: apmail-lucene-solr-dev-archive@lucene.apache.org Received: (qmail 94371 invoked by uid 500); 4 Feb 2007 09:00:45 -0000 Mailing-List: contact solr-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-dev@lucene.apache.org Delivered-To: mailing list solr-dev@lucene.apache.org Received: (qmail 94362 invoked by uid 99); 4 Feb 2007 09:00:45 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 04 Feb 2007 01:00:45 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 04 Feb 2007 01:00:38 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 3296971429F for ; Sun, 4 Feb 2007 01:00:18 -0800 (PST) Message-ID: <8212858.1170579618204.JavaMail.jira@brutus> Date: Sun, 4 Feb 2007 01:00:18 -0800 (PST) From: "Ryan McKinley (JIRA)" To: solr-dev@lucene.apache.org Subject: [jira] Commented: (SOLR-139) Support updateable/modifiable documents In-Reply-To: <30063871.1170576125525.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/SOLR-139?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12470035 ] Ryan McKinley commented on SOLR-139: ------------------------------------ SOLR-139-IndexDocumentCommand.patch adds a new command to UpdateHandler and deprecates 'AddUpdateCommand' This patch is only concerned with adding updateability to the UpdateHandler, it does not deal with how request handlers specify what should happen with each field. I added: public class IndexDocumentCommand { public enum MODE { OVERWRITE, // overwrite existing values with the new one. (the default behavior) APPEND, // add the new value to existing value DISTINCT, // same as APPEND, but make sure each value is distinct INCREMENT, // increment existing value. Must be a number! REMOVE // remove the previous value. }; public boolean overwrite = true; public SolrDocument doc; public Map mode; // What to do for each field. null is the default public int commitMaxTime = -1; // make sure the document is commited within this much time } RequestHandlers will need to fill up the 'mode' map if they want to support updateability. Setting the mode.put( null, APPEND ) sets the default mode. > Support updateable/modifiable documents > --------------------------------------- > > Key: SOLR-139 > URL: https://issues.apache.org/jira/browse/SOLR-139 > Project: Solr > Issue Type: Improvement > Components: update > Reporter: Ryan McKinley > Attachments: SOLR-139-IndexDocumentCommand.patch > > > It would be nice to be able to update some fields on a document without having to insert the entire document. > Given the way lucene is structured, (for now) one can only modify stored fields. > While we are at it, we can support incrementing an existing value - I think this only makes sense for numbers. > for background, see: > http://www.nabble.com/loading-many-documents-by-ID-tf3145666.html#a8722293 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.