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 BF00B200BCE for ; Fri, 2 Dec 2016 15:53:36 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id BDF43160B24; Fri, 2 Dec 2016 14:53:36 +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 144B3160B16 for ; Fri, 2 Dec 2016 15:53:35 +0100 (CET) Received: (qmail 55011 invoked by uid 500); 2 Dec 2016 14:53:34 -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 54996 invoked by uid 99); 2 Dec 2016 14:53:34 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Dec 2016 14:53:34 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 117D5180335 for ; Fri, 2 Dec 2016 14:53:34 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-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: spamd3-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 (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id fpuwm_Grcg-3 for ; Fri, 2 Dec 2016 14:53:30 +0000 (UTC) Received: from mail-wm0-f52.google.com (mail-wm0-f52.google.com [74.125.82.52]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 1E21A5FBC4 for ; Fri, 2 Dec 2016 14:53:30 +0000 (UTC) Received: by mail-wm0-f52.google.com with SMTP id g23so19188588wme.1 for ; Fri, 02 Dec 2016 06:53:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=Pnr5t1l+ZIRRVNs8wyB66tq5kPiefHBZFNGmD6Hsnfo=; b=dK0XLmDaa1CZoiO/ZGx1rOqrEXi15J9loKM8Vo+kAhXmZZp4U0p6HLaYJU0ebtjzm5 SiZAgCy+PaQgAyK4dIXF1cH8vHYQq/Xb8rhlisqHWIYPZnXnKZIbw7mk1vRWYiErzYMp 6GIETl7GSYLFu+0lBxG9YKO9lD/0x3Dl+kemSLUGwIB2y2Wa8RMew0o1e7f1XS/cxRO3 mM01x/dvka1x5NBXKGE3Q4h8/Tq9gO4eRimi0A1+7TApR/u211jNCNDpoIy1Fs06kTpb 27m3+31oDKinIMjq9aKqQdLm5j7aK7k+pEN7zyNJW5hLQJIocpMoF62TQOfOlJowNMFL 93gw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=Pnr5t1l+ZIRRVNs8wyB66tq5kPiefHBZFNGmD6Hsnfo=; b=GVp/Rr9reFOZ/AxjQotBfNnvIj8sMiBh7AZcdbdnSqTtbZb3H2VPzXoAvwjDEbtvcK DHqc8HQX8vK7HhHgXbnfusG3N1F1RuQY63oVZCaEocWd1rV+dsLOXAVNqzgzrOAfPn5a sx1mtD+z2kmSfbpfWhZY8XCyoCq1+rrn61Ue8/Jo+C69ENSeGoyuOO6aKPkaI+DlrH/u kK1Ec1/cy+6f+R5e74teSz7nkEkfZm9dJQtqmIkZytR1QIDeaeSYmp4OxPtPIUGu4/px yYo5Dd3OMDCyCcSp5C70sxKrYQny28Pn5P7eC6/99JiPxM4H+yJlJwczJlos2W3AQrL7 HntA== X-Gm-Message-State: AKaTC03B5TcX1rJso1e4jBMFTxscs+xEAvUSmmoD0+gY5QlMC8rKtnsRyD8NfjUmjpThyrJgG2n/3BDnYa2cCw== X-Received: by 10.28.73.135 with SMTP id w129mr3166950wma.42.1480690393962; Fri, 02 Dec 2016 06:53:13 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Adrien Grand Date: Fri, 02 Dec 2016 14:53:03 +0000 Message-ID: Subject: Re: LeafCollector To: Lucene Users , Matt Hicks Content-Type: multipart/alternative; boundary=001a114b2d9ef460d90542ae189f archived-at: Fri, 02 Dec 2016 14:53:36 -0000 --001a114b2d9ef460d90542ae189f Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Maybe you could use DiversifiedTopDocsCollector? https://lucene.apache.org/core/6_2_0/misc/org/apache/lucene/search/Diversif= iedTopDocsCollector.html Le jeu. 1 d=C3=A9c. 2016 =C3=A0 23:08, Michael McCandless a =C3=A9crit : > Lucene used to have a DuplicateFilter to do this, but we removed it > recently ... see https://issues.apache.org/jira/browse/LUCENE-6633 for > some discussion as to why. > > Mike McCandless > > http://blog.mikemccandless.com > > > On Thu, Dec 1, 2016 at 2:39 PM, Matt Hicks wrote: > > I'm trying to write a LeafCollector that filters out duplicates for a > > specific field. However, looking at the JavaDoc for `collect` it says n= ot > > to call `IndexSearch.doc` or `IndexReader.document`. How am I supposed > to > > determine the value of a field and then exclude it? > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org > For additional commands, e-mail: java-user-help@lucene.apache.org > > --001a114b2d9ef460d90542ae189f--