From java-user-return-63769-archive-asf-public=cust-asf.ponee.io@lucene.apache.org Wed Jun 6 12:46:56 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id EC175180671 for ; Wed, 6 Jun 2018 12:46:55 +0200 (CEST) Received: (qmail 19179 invoked by uid 500); 6 Jun 2018 10:46:54 -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 19167 invoked by uid 99); 6 Jun 2018 10:46:53 -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; Wed, 06 Jun 2018 10:46:53 +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 8AF6618034E for ; Wed, 6 Jun 2018 10:46:52 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.398 X-Spam-Level: ** X-Spam-Status: No, score=2.398 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, KAM_NUMSUBJECT=0.5, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, 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 w2IQPPiNRzqA for ; Wed, 6 Jun 2018 10:46:50 +0000 (UTC) Received: from mail-wr0-f172.google.com (mail-wr0-f172.google.com [209.85.128.172]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 0EF225F357 for ; Wed, 6 Jun 2018 10:46:50 +0000 (UTC) Received: by mail-wr0-f172.google.com with SMTP id l41-v6so5752800wre.7 for ; Wed, 06 Jun 2018 03:46:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=otKV3WlBfVuZM1SNzVVkoU1RdzB36Vz1SqPO3JreOPw=; b=ZXv5lHhy4nQEJhivtBoNoQDuHrdcdmdSxThV/e7x1qTebVWZqsnpMh7lY/0JETzUp4 p8+RmE4RbZBU82pjWL0WAjO5czj5/WOUTVMlwnJJYUbn5r/to3vLHgJ7LyEiQosT1znV lnYXsROG7fsgL9JiMIt1DqQ734Of4uzhM52O+iWVX6yvGnn5wbPxpO3GJPMqvAXWpPdr atmjjw3pZVPbyP/9yt6sbzm+v8mXr8r7d5fNhk/ZCxk1zVIHaq0xqYv4DsTczk+ALItk ho9BVEtXFp3inByfedMFU/1aQKAcLdIodPx8Ozz+k5TeWGd2wSUmut6InOQpck5mSvEe l2pw== 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=otKV3WlBfVuZM1SNzVVkoU1RdzB36Vz1SqPO3JreOPw=; b=HNN4l2tI8WNXzuVLaAuk3MRgr7MHveegFHwqhn2tYjHO8uZZnHRYKUGu0mdOkprW7z w6Km9Mj4rejcoV3kgSISQVOQoR7125XGGZdPo9eACZyDxfw6uOfbLyFGek1wATzagxk5 zq8xsGltnURAiEOPgnYgAw9WMFNMnFSts6hrUmMENhcI7GRounfDuBIz6h1MfAjDAmYG bKsaIhtK28gitdae9tfcxBBp027U1fybDnu49nnMIkuzIBq9npAM8rTJxCwKofws+i/c Y78ox9qolBP6IvIfzBAmTtd2Yk8U/L5s9RGRZJ3h7cU/3Ow0nuT4ENnY7nDxaWtRw1Ws Thuw== X-Gm-Message-State: APt69E3ykEqIXiTEJm+giLDP7Ao461ca0792BBqdbJlAv8ueTI+ucq7E /zJg47V9Rrjp54kLjw+Hm7DY+IPHTmWTjCiJOy4= X-Google-Smtp-Source: ADUXVKI3mUviESBybkI0rUfNIWU9fLFGQ0THgam1IxAHy2LsDfeYbKkj28qW8Fcbr/TSbCW7iU0QSKzn9rCMkhVdjXM= X-Received: by 2002:adf:ae8b:: with SMTP id y11-v6mr2084421wrc.234.1528282008904; Wed, 06 Jun 2018 03:46:48 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Adrien Grand Date: Wed, 6 Jun 2018 12:46:37 +0200 Message-ID: Subject: Re: EarlyTerminatingSortingCollector is expired in lucene 7.2.1 To: java-user@lucene.apache.org Content-Type: multipart/alternative; boundary="00000000000041e7fe056df6e2a6" --00000000000041e7fe056df6e2a6 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Cool. Then my advice would be to fork this collector in your code base. Le mer. 6 juin 2018 =C3=A0 12:45, Yonghui Zhao a = =C3=A9crit : > Thanks Adrien! > Yes I am aware of this "that EarlyTerminatingSortingCollector does not > exactly do that > since it works on a per-segment basis" > > I use EarlyTerminatingSortingCollector for performance when docs hit are > too much. > > 2018-06-04 19:09 GMT+08:00 Adrien Grand : > > > You are right that TopFieldCollector doesn't address some expert > use-cases > > that EarlyTerminatingSortingCollect used to address. If you need to do > > something like this I think it's fine for you to fork > > EarlyTerminatingSortingCollector. > > > > Do I get it right that you have two fields A and B and want the top 10 > > documents sorted by A among the top 1M documents when sorting by B? If > yes > > then beware that EarlyTerminatingSortingCollector does not exactly do > that > > since it works on a per-segment basis, so you could get some hits in yo= ur > > results that are not within the top 1M hits when sorting by B. > > > --00000000000041e7fe056df6e2a6--