Return-Path: Delivered-To: apmail-jakarta-lucene-user-archive@www.apache.org Received: (qmail 31799 invoked from network); 28 Feb 2005 14:39:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 28 Feb 2005 14:39:00 -0000 Received: (qmail 75154 invoked by uid 500); 28 Feb 2005 14:09:33 -0000 Delivered-To: apmail-jakarta-lucene-user-archive@jakarta.apache.org Received: (qmail 75117 invoked by uid 500); 28 Feb 2005 14:09:33 -0000 Mailing-List: contact lucene-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Lucene Users List" Reply-To: "Lucene Users List" Delivered-To: mailing list lucene-user@jakarta.apache.org Received: (qmail 75101 invoked by uid 99); 28 Feb 2005 14:09:33 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from Unknown (HELO ehatchersolutions.com) (69.55.225.129) by apache.org (qpsmtpd/0.28) with ESMTP; Mon, 28 Feb 2005 06:09:32 -0800 Received: by ehatchersolutions.com (Postfix, from userid 504) id C3CC913E20F1; Mon, 28 Feb 2005 09:09:29 -0500 (EST) Received: from [192.168.1.100] (va-chrvlle-cad1-bdgrp1-4b-b-169.chvlva.adelphia.net [68.169.41.169]) by ehatchersolutions.com (Postfix) with ESMTP id 347CC13E2008 for ; Mon, 28 Feb 2005 09:09:05 -0500 (EST) Mime-Version: 1.0 (Apple Message framework v619.2) In-Reply-To: <00d301c51d84$bf531970$d380a8c0@sirma.int> References: <421F8DB6.3030306@jCatalog.com> <16930.51341.630394.350033@tanto-xipolis.de> <00d301c51d84$bf531970$d380a8c0@sirma.int> Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Erik Hatcher Subject: Re: Fast access to a random page of the search results. Date: Mon, 28 Feb 2005 09:09:01 -0500 To: "Lucene Users List" X-Mailer: Apple Mail (2.619.2) X-Spam-Checker-Version: SpamAssassin 3.0.1 (2004-10-22) on javelina X-Spam-Status: No, score=-1.4 required=5.0 tests=AWL,BAYES_00, RCVD_IN_NJABL_DUL,RCVD_IN_SORBS_DUL autolearn=no version=3.0.1 X-Spam-Level: X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N On Feb 28, 2005, at 6:00 AM, Stanislav Jordanov wrote: > my private investigation already left me sceptic about the outcome of > this > issue, > but I've decided to post it as a final resort. What did you do in your private investigation? > Suppose I have an index of about 5,000,000 docs > and I am running a single term queries against it, including queries > which > return say 1,000,000 or even more hits. > > The hits are sorted by some column and I am happy with the query > execution > time (i.e. the time spent in the IndexSearcher.query(...) method). > Now comes the problem: it is a product requirement that the client is > allowed to quickly access (by scrolling) a random page of the result > set. > Put in different words the app must quickly (in less that a second) > respond > to requests like: "Give me the results from No 567100 to No 567200" > (remember the results are sorted thus ordered). Sorted by descending relevance (the default), or in some other way? If a search is fast enough, as you report, then you can simply start your access to Hits at the appropriate spot. For the current systems I'm working on, this is the approach I've used - start iterating hits at (pageNumber - 1) * numberOfItemsPerPage. Is that approach insufficient? Erik > I took a look at Lucene's internals which only left me with the > suspision > that this is an impossible task. > Would anyone, please, prove my suspision wrong? > > Regards > Stanislav > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: lucene-user-help@jakarta.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: lucene-user-help@jakarta.apache.org