Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 867 invoked from network); 5 Apr 2011 15:02:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 5 Apr 2011 15:02:05 -0000 Received: (qmail 2825 invoked by uid 500); 5 Apr 2011 15:02:03 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 2732 invoked by uid 500); 5 Apr 2011 15:02:03 -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 2724 invoked by uid 99); 5 Apr 2011 15:02:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Apr 2011 15:02:03 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of yseeley@gmail.com designates 209.85.161.48 as permitted sender) Received: from [209.85.161.48] (HELO mail-fx0-f48.google.com) (209.85.161.48) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Apr 2011 15:01:56 +0000 Received: by fxm7 with SMTP id 7so502489fxm.35 for ; Tue, 05 Apr 2011 08:01:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:reply-to:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to:cc :content-type; bh=mxySiJfmteD1KBTydgHXVU0FYbtnTaKKff3bcDyLh0c=; b=W6lDp8A9IcoluAbCFsdVb9nVVWjlGrlSboyIIkgMCNtV9FbY5CwsgMH6n27oKqhhNp DsCwQfvADkfD8OUufdSmi7QSnoOmVeZDAO0MrFYVZoNdD+kfDmkB3klFZNob4sFphPOX Hz/pqfIl4zoo9PfIREaGz2lGJR7w41c6Uvll4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:reply-to:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; b=K+osDdCTOeb2DjU40xXesd+z4bYsNMbLY/C2E+CpNGzaVcjGAnx/ulVS2fDA2h5dFj v9OaMlVpedvBUty4iXDQje37BJr+auPO3EeXzhbDNC6Y4Y0brN2NkNL2+ltsoueBMfDw Jokdl4YCfzqSM1FzenwGyNVmAFXOP/u43SeXw= MIME-Version: 1.0 Received: by 10.223.125.196 with SMTP id z4mr4838067far.28.1302015695723; Tue, 05 Apr 2011 08:01:35 -0700 (PDT) Sender: yseeley@gmail.com Reply-To: yonik@lucidimagination.com Received: by 10.223.111.79 with HTTP; Tue, 5 Apr 2011 08:01:35 -0700 (PDT) In-Reply-To: <4D9AB59D.2050001@thorntothehorn.org> References: <4D9AB59D.2050001@thorntothehorn.org> Date: Tue, 5 Apr 2011 11:01:35 -0400 X-Google-Sender-Auth: zW856RezSB5GXCxFJpQ6-U_m6Ok Message-ID: Subject: Re: DocIdSet to represent small numberr of hits in large Document set From: Yonik Seeley To: java-user@lucene.apache.org Cc: Antony Bowesman Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org On Tue, Apr 5, 2011 at 2:24 AM, Antony Bowesman wrote: > Seems like SortedVIntList can be used to store the info, but it has no > methods to build the list in the first place, requiring an array or bitset > in the constructor. It has a constructor that takes DocIdSetIterator - so you can pass an iterator obtained from anywhere else (a Scorer actually is a DocIdSetIterator, and you can get a DocIdSet from a Filter), or implement your own. It's a simple iterator interface. -Yonik http://www.lucenerevolution.org -- Lucene/Solr User Conference, May 25-26, San Francisco --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org