Return-Path: X-Original-To: apmail-lucene-java-user-archive@www.apache.org Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6A78C7479 for ; Tue, 15 Nov 2011 12:23:42 +0000 (UTC) Received: (qmail 19492 invoked by uid 500); 15 Nov 2011 12:23:40 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 19323 invoked by uid 500); 15 Nov 2011 12:23:40 -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 19315 invoked by uid 99); 15 Nov 2011 12:23:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Nov 2011 12:23:40 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ian.lea@gmail.com designates 209.85.161.176 as permitted sender) Received: from [209.85.161.176] (HELO mail-gx0-f176.google.com) (209.85.161.176) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Nov 2011 12:23:34 +0000 Received: by ggnp1 with SMTP id p1so3959793ggn.35 for ; Tue, 15 Nov 2011 04:23:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=f57aD5RN+mKgOVcztKAlxzGKmpYnH9OGqUZ3vGsCDFo=; b=GLqbQobHgwMlzLAX4zM4cPpptyeoQl9iELo1FORz03LB+8IGBv1h7CyiSw/W1YAP9J 5w1qamMeFjyXsVYwkUaxPG7zIpN/iEK1S9wxQTB48ugSgZBDFC89xDjnFri4mj3jm63R ByFIIt7m8g93S0RtQ7t2uBLK8+MFyxUhcg+Cg= Received: by 10.50.17.199 with SMTP id q7mr27373636igd.20.1321359793151; Tue, 15 Nov 2011 04:23:13 -0800 (PST) MIME-Version: 1.0 Received: by 10.231.45.141 with HTTP; Tue, 15 Nov 2011 04:22:52 -0800 (PST) In-Reply-To: References: From: Ian Lea Date: Tue, 15 Nov 2011 12:22:52 +0000 Message-ID: Subject: Re: Lucene pagination To: java-user@lucene.apache.org Content-Type: text/plain; charset=ISO-8859-1 The latter: do the search again and grab the chunk you want. Best not to open the index each time if you can avoid it. http://wiki.apache.org/lucene-java/LuceneFAQ#How_do_I_implement_paging.2C_i.e._showing_result_from_1-10.2C_11-20_etc.3F -- Ian. On Tue, Nov 15, 2011 at 12:05 PM, Felipe Carvalho wrote: > I've found a couple of people asking around the same thing over the > internet, just wanted to check with the experts if there's a better way to > do this: how do I paginate Lucene search results? Is there a native way to > do this or should I, upon each request, open the index, do the search and > get the slice of results I'm interested? > > Thanks! > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org