From dev-return-327185-archive-asf-public=cust-asf.ponee.io@lucene.apache.org Wed Jul 4 09:12:05 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 21C38180674 for ; Wed, 4 Jul 2018 09:12:04 +0200 (CEST) Received: (qmail 516 invoked by uid 500); 4 Jul 2018 07:12:03 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 506 invoked by uid 99); 4 Jul 2018 07:12:03 -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; Wed, 04 Jul 2018 07:12:03 +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 4A3E9C00CB for ; Wed, 4 Jul 2018 07:12:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -110.301 X-Spam-Level: X-Spam-Status: No, score=-110.301 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id FoTnbJH0HWCE for ; Wed, 4 Jul 2018 07:12:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 1B25B5F4E4 for ; Wed, 4 Jul 2018 07:12:02 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id D5F7CE0F87 for ; Wed, 4 Jul 2018 07:12:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 275AE274F8 for ; Wed, 4 Jul 2018 07:12:00 +0000 (UTC) Date: Wed, 4 Jul 2018 07:12:00 +0000 (UTC) From: "Adrien Grand (JIRA)" To: dev@lucene.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (LUCENE-8378) Add DocIdSetIterator.range method MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/LUCENE-8378?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D165= 32362#comment-16532362 ]=20 Adrien Grand commented on LUCENE-8378: -------------------------------------- +1 The {{if (doc =3D=3D -1)}} specialization in nextDoc() doesn't seem to buy = much compared to always returning {{advance(doc + 1)}}? > Add DocIdSetIterator.range method > --------------------------------- > > Key: LUCENE-8378 > URL: https://issues.apache.org/jira/browse/LUCENE-8378 > Project: Lucene - Core > Issue Type: Improvement > Reporter: Michael McCandless > Assignee: Michael McCandless > Priority: Major > Attachments: LUCENE-8378.patch, LUCENE-8378.patch > > > We already have {{DocIdSetIterator.all}} and {{DocIdSetIterator.empty}} b= ut I'd like to also add a {{range}}=C2=A0method to match a specified range = of docids. > E.g. this can be useful if you sort your index by a key, and then create = a custom query to match documents by values for that key, or by range (LUCE= NE-7714). -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org