Return-Path: X-Original-To: apmail-lucene-solr-user-archive@minotaur.apache.org Delivered-To: apmail-lucene-solr-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id AE8F410B53 for ; Sat, 24 Aug 2013 02:09:16 +0000 (UTC) Received: (qmail 9942 invoked by uid 500); 24 Aug 2013 02:09:12 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 9857 invoked by uid 500); 24 Aug 2013 02:09:12 -0000 Mailing-List: contact solr-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-user@lucene.apache.org Delivered-To: mailing list solr-user@lucene.apache.org Received: (qmail 9849 invoked by uid 99); 24 Aug 2013 02:09:12 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 24 Aug 2013 02:09:12 +0000 X-ASF-Spam-Status: No, hits=0.3 required=5.0 tests=FREEMAIL_REPLY,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of goksron@gmail.com designates 209.85.220.46 as permitted sender) Received: from [209.85.220.46] (HELO mail-pa0-f46.google.com) (209.85.220.46) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 24 Aug 2013 02:09:06 +0000 Received: by mail-pa0-f46.google.com with SMTP id fa1so1315327pad.5 for ; Fri, 23 Aug 2013 19:08:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=H6SiMjrZunOHaO9MWVPunJTBNRs+EvL32ENV9lY4aok=; b=bvp6pFRIWHQ6kY0JabI8Sk2SzUx0VJnn227RH1PMHMyUNyLD11XYn9Z7iFB7Qp5TVO gTSrRnQv8FIjPe/azB6ti68pkxJx0npUouYT07r00uvjVA3TO/LdyuilXwYvkuWfxfyn 7dl0zku1s/cdbcNJexYWUDyVuvJfBe7WTLcuuPnMEZkkhCPRqT2s/R7ehLwDJdzG8lB3 cC3Io1+GBVqWajxKp4vQs9DHw02laxJ9YDHLMRdxrzPtoDb/7yeV+Dhpc2REM+bwT5sI hwdgnuUdSnDVxTOT6kk/h3LJNmGOPO58ZJCCIzhP3l8sQ93ZsFOdmfPB9enoGDClHHF8 YZeQ== X-Received: by 10.68.228.73 with SMTP id sg9mr2751397pbc.136.1377310126396; Fri, 23 Aug 2013 19:08:46 -0700 (PDT) Received: from [10.19.220.151] (64-71-21-34.static.wiline.com. [64.71.21.34]) by mx.google.com with ESMTPSA id qv4sm2797690pbc.16.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 23 Aug 2013 19:08:45 -0700 (PDT) Message-ID: <521815AB.6@gmail.com> Date: Fri, 23 Aug 2013 19:08:43 -0700 From: Lance Norskog User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130803 Thunderbird/17.0.8 MIME-Version: 1.0 To: solr-user@lucene.apache.org Subject: Re: SOLR Prevent solr of modifying fields when update doc References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org Solr does not by default generate unique IDs. It uses what you give as your unique field, usually called 'id'. What software do you use to index data from your RSS feeds? Maybe that is creating a new 'id' field? There is no partial update, Solr (Lucene) always rewrites the complete document. On 08/23/2013 09:03 AM, Greg Preston wrote: > Perhaps an atomic update that only changes the fields you want to change? > > -Greg > > > On Fri, Aug 23, 2013 at 4:16 AM, Lu�s Portela Afonso > wrote: >> Hi thanks by the answer, but the uniqueId is generated by me. But when solr indexes and there is an update in a doc, it deletes the doc and creates a new one, so it generates a new UUID. >> It is not suitable for me, because i want that solr just updates some fields, because the UUID is the key that i use to map it to an user in my database. >> >> Right now i'm using information that comes from the source and never chages, as my uniqueId, like for example the guid, that exists in some rss feeds, or if it doesn't exists i use link. >> >> I think there is any simple solution for me, because for what i have read, when an update to a doc exists, SOLR deletes the old one and create a new one, right? >> >> On Aug 23, 2013, at 12:07 PM, Erick Erickson wrote: >> >>> Well, not much in the way of help because you can't do what you >>> want AFAIK. I don't think UUID is suitable for your use-case. Why not >>> use your ? >>> >>> Or generate something yourself... >>> >>> Best >>> Erick >>> >>> >>> On Thu, Aug 22, 2013 at 5:56 PM, Lu�s Portela Afonso >>> wrote: >>>> Hi, >>>> >>>> How can i prevent solr from update some fields when updating a doc? >>>> The problem is, i have an uuid with the field name uuid, but it is not an >>>> unique key. When a rss source updates a feed, solr will update the doc with >>>> the same link but it generates a new uuid. This is not the desired because >>>> this id is used by me to relate feeds with an user. >>>> >>>> Can someone help me? >>>> >>>> Many Thanks