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 4E81C200BD5 for ; Thu, 8 Dec 2016 18:00:41 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 4D01E160B1F; Thu, 8 Dec 2016 17:00:41 +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 973E0160B0A for ; Thu, 8 Dec 2016 18:00:40 +0100 (CET) Received: (qmail 4467 invoked by uid 500); 8 Dec 2016 17:00:39 -0000 Mailing-List: contact java-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@lucene.apache.org Delivered-To: mailing list java-user@lucene.apache.org Received: (qmail 4452 invoked by uid 99); 8 Dec 2016 17:00:39 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Dec 2016 17:00:39 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id A1A7F1A955C for ; Thu, 8 Dec 2016 17:00:38 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.879 X-Spam-Level: * X-Spam-Status: No, score=1.879 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, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id UnI_4Umq-Qjl for ; Thu, 8 Dec 2016 17:00:37 +0000 (UTC) Received: from mail-wj0-f169.google.com (mail-wj0-f169.google.com [209.85.210.169]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 5715860DA2 for ; Thu, 8 Dec 2016 17:00:37 +0000 (UTC) Received: by mail-wj0-f169.google.com with SMTP id v7so393251697wjy.2 for ; Thu, 08 Dec 2016 09:00:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=h7Dos6xGG9E0x6tcTWH+3jgZ7Rjnq7zglIHcYp6lrCg=; b=mF7HlUGh3sJt516M1eaL2AP0UZyYjA6d0EP85A1PMVAQd6+l/2Kz9WKWa6QPKUycQK OT6cPuFxwQKkZiXRx2GIV/pPeHtEhSmpIdQVXNoQNkFrI6N4otYxS2tKDRVUD8hE3wLh raAMs78Q9vYjMPGKvOyXVyf2LvdF6S4ypBOLVKeZkOCgdHeOf8UVPidg7LaCTA3MVpMa 95Dys8M8U4Y37vM2LFb/kY6WftOuC12fYES7dpN2FjSvNpGf64Ruvh9UZpyAm3NerRJ9 RW62TQ2nQ43SDy+m5mHQjSbUUrl35OJArZfY4qKplGtMtmvSkMaV5Ry6jThFFO5iq4h+ hZHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=h7Dos6xGG9E0x6tcTWH+3jgZ7Rjnq7zglIHcYp6lrCg=; b=R7TWBUq8mFZOQoY/eFm+f61Y8mwYmm+ylwPQHDg8YOb2nsGDfwCE+yMNGY3ByEL7L1 EO2GW7D9DiDbBIdtYftaV4s4h0p9f/06NF3ykDLvUbkvZ0idi8X2eUw/tIc9j6uUbB/f TT2cY4mxum17pCMalUlIpLMZxPwgI7SFP3HwXZ7zH10jhsfFspEbjtK8WPanWl3Oo7LZ daKkDktCsY8Cn5vCz1cGEDbyfxGNm/s9lGae34447JO5hzjcble4IJhtjF3Ptdv+mXhs qYLIOp0HOtCYKQ63q0rmsWlfh7ATtmDDab4+8PnJuLna4OjxyVIYzdzL33OlIsHYFuYZ F4UA== X-Gm-Message-State: AKaTC02kD+F8KcGgq8xM2y9sdlnjONsAMSfUm1TX/cQ9VS/CcHTgL2j1/OIYQiUhgeVJWXBeZ3Mqtbxa/seLxw== X-Received: by 10.194.174.39 with SMTP id bp7mr64005308wjc.5.1481216436283; Thu, 08 Dec 2016 09:00:36 -0800 (PST) MIME-Version: 1.0 Received: by 10.80.154.133 with HTTP; Thu, 8 Dec 2016 09:00:35 -0800 (PST) In-Reply-To: References: From: Hans Lund Date: Thu, 8 Dec 2016 18:00:35 +0100 Message-ID: Subject: Re: FieldValueQuery To: Lucene Users Content-Type: multipart/alternative; boundary=089e0149371c8563ef0543289352 archived-at: Thu, 08 Dec 2016 17:00:41 -0000 --089e0149371c8563ef0543289352 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Of cause! Almost too obvious ;-) thx alot - I'll spend some time wondering why that didn't pop up in my mind as a solution. On Thu, Dec 8, 2016 at 5:16 PM, Adrien Grand wrote: > Le jeu. 8 d=C3=A9c. 2016 =C3=A0 16:42, Hans Lund a = =C3=A9crit : > > > That would be a solution for sure - but it has the drawback of doubling > the > > indexed fields pr document. > > > > If you want to do it for all fields, you could use the name of the field = as > a value, for instance has_field:foo, has_field:bar, etc. This is how > Elasticsearch implements its exists query. One interesting thing to note = is > that fields that appear in all documents will require very little storage > since the encoding we use for postings lists is optimized when all docs > have a given value. > --089e0149371c8563ef0543289352--