Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id B8B70200C63 for ; Thu, 27 Apr 2017 02:05:08 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id B75A0160BB4; Thu, 27 Apr 2017 00:05:08 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id D7448160BA8 for ; Thu, 27 Apr 2017 02:05:07 +0200 (CEST) Received: (qmail 99750 invoked by uid 500); 27 Apr 2017 00:05:06 -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 99738 invoked by uid 99); 27 Apr 2017 00:05:05 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Apr 2017 00:05:05 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 414A3C0DB2 for ; Thu, 27 Apr 2017 00:05:05 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.379 X-Spam-Level: ** X-Spam-Status: No, score=2.379 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=iq.media Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id kLfxgmsGCnFQ for ; Thu, 27 Apr 2017 00:05:01 +0000 (UTC) Received: from mail-qk0-f173.google.com (mail-qk0-f173.google.com [209.85.220.173]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id D19D95F485 for ; Thu, 27 Apr 2017 00:05:00 +0000 (UTC) Received: by mail-qk0-f173.google.com with SMTP id h123so15023279qke.0 for ; Wed, 26 Apr 2017 17:05:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iq.media; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=L8pThdJJLD7qo+/N3OnZ8DElhHmlTIeFG/f+IyM1pM0=; b=cvdVrupqhxZNKpvW2VDWAxSGUAtyz3O5y6ss6Wxsod4gx42+V4mShZaNLe1Lw2PpSj qVxPtDaxJd+ti1zBh1Ge+Rv9iD6xR8n7b3pQ5FhM5KOOLYolyGutORWZzZkIVY4956tX /vFu9CD6ScSJvL+UofoxzVT4un0MJdVMz+vPc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=L8pThdJJLD7qo+/N3OnZ8DElhHmlTIeFG/f+IyM1pM0=; b=f+TQGBfZRc579Msrwzy+TNqWE/XAgkAz66Mg7dbGypqkV92jHAaZPOOqrs09kx/HSF OGe6kXjkwmYZcnmEzEEbR7q6UzM0Gty8RhWnBXznwYJsHPGYhcs1MBz9EFACsqjyXJka EggtUslwecpDPBiRKVVxHmwJwtuwfGhuXzS2FsfRhOgBkDORPFmXhNptq03D0osWBDGN uBHwOJK2YECQS1l4WAWFBybqx9fhoGE2d8HAgpKYrIWHrZleLcPV3bXue9AE4XZDpxuS RvEbs/Ssf1DDwztJZsu01HrNA7zhWMBcwr/6BW8xw840+fa4sUxBv2es+NQpvEkYTF7l /wZQ== X-Gm-Message-State: AN3rC/5lZxYLr2MFRjF8K5Rug0wnJV7bG7T/fgGuR8XzHG3a9b+acusf HTZqhSBVSXsoGKH2uHE5CYllzz2FgsOz X-Received: by 10.55.164.20 with SMTP id n20mr2720509qke.200.1493251499453; Wed, 26 Apr 2017 17:04:59 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Chris Ulicny Date: Thu, 27 Apr 2017 00:04:48 +0000 Message-ID: Subject: Re: Atomic Updates To: solr-user@lucene.apache.org Content-Type: multipart/alternative; boundary=001a114fd2ce2ff3bf054e1ab552 archived-at: Thu, 27 Apr 2017 00:05:08 -0000 --001a114fd2ce2ff3bf054e1ab552 Content-Type: text/plain; charset=UTF-8 That's probably it then. None of the atomic updates that I've tried have been on TextFields. I'll give the TextField atomic update to verify that it will clear the other field. Has this functionality been consistent since atomic updates were introduced, or is this a side effect of some other change? It'd be very convenient for us to use this functionality as it currently works, but if it's something that prevents us from upgrading versions in the future, we should probably avoid expecting it to work. On Wed, Apr 26, 2017 at 7:36 PM Ishan Chattopadhyaya < ichattopadhyaya@gmail.com> wrote: > > Hmm, interesting. I can imagine that as long as you're updating > > docValues fields, the other_text field would be there. But the instant > > you updated a non-docValues field (text_field in your example) the > > other_text field would disappear > > I can confirm this. When in-place updates to DV fields are done, the rest > of the fields remain as they were. > > On Thu, Apr 27, 2017 at 4:33 AM, Erick Erickson > wrote: > > > Hmm, interesting. I can imagine that as long as you're updating > > docValues fields, the other_text field would be there. But the instant > > you updated a non-docValues field (text_field in your example) the > > other_text field would disappear. > > > > I DO NOT KNOW this for a fact, but I'm asking people who do. > > > > On Wed, Apr 26, 2017 at 2:13 PM, Dorian Hoxha > > wrote: > > > There are In Place Updates, but according to docs they stll shouldn't > > work > > > in your case: > > > https://cwiki.apache.org/confluence/display/solr/ > > Updating+Parts+of+Documents > > > > > > On Wed, Apr 26, 2017 at 10:36 PM, Chris Ulicny > wrote: > > > > > >> That's the thing I'm curious about though. As I mentioned in the first > > >> post, I've already tried a few tests, and the value seems to still be > > >> present after an atomic update. > > >> > > >> I haven't exhausted all possible atomic updates, but 'set' and 'add' > > seem > > >> to preserve the non-stored text field. > > >> > > >> Thanks, > > >> Chris > > >> > > >> On Wed, Apr 26, 2017 at 4:07 PM Dorian Hoxha > > >> wrote: > > >> > > >> > You'll lose the data in that field. Try doing a commit and it should > > >> > happen. > > >> > > > >> > On Wed, Apr 26, 2017 at 9:50 PM, Chris Ulicny > > wrote: > > >> > > > >> > > Thanks Shawn, I didn't realize docValues were enabled by default > > now. > > >> > > That's very convenient and probably makes a lot of the schemas > we've > > >> been > > >> > > making excessively verbose. > > >> > > > > >> > > This is on 6.3.0. Do you know what the first version was that they > > >> added > > >> > > the docValues by default for non-Text field? > > >> > > > > >> > > However, that shouldn't apply to this since I'm concerned with a > > >> > non-stored > > >> > > TextField without docValues enabled. > > >> > > > > >> > > Best, > > >> > > Chris > > >> > > > > >> > > On Wed, Apr 26, 2017 at 3:36 PM Shawn Heisey > > > >> > wrote: > > >> > > > > >> > > > On 4/25/2017 1:40 PM, Chris Ulicny wrote: > > >> > > > > Hello all, > > >> > > > > > > >> > > > > Suppose I have the following fields in a document and populate > > all > > >> 4 > > >> > > > fields > > >> > > > > for every document. > > >> > > > > > > >> > > > > id: uniqueKey, indexed and stored > > >> > > > > integer_field: indexed and stored > > >> > > > > text_field: indexed and stored > > >> > > > > othertext_field: indexed but not stored > > >> > > > > > > >> > > > > No default values, multivalues, docvalues, copyfields, or any > > other > > >> > > > > properties set. > > >> > > > > > >> > > > You didn't indicate the Solr version. In recent Solr versions, > > most > > >> > > > field classes other than TextField have docValues enabled by > > default, > > >> > > > even if the config is not mentioned on the field, and in those > > >> > versions, > > >> > > > docValues will take the place of stored if stored is false. > > >> > > > > > >> > > > Thanks, > > >> > > > Shawn > > >> > > > > > >> > > > > > >> > > > > >> > > > >> > > > --001a114fd2ce2ff3bf054e1ab552--