From java-user-return-63720-archive-asf-public=cust-asf.ponee.io@lucene.apache.org Wed May 9 15:00:47 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 3FCB1180649 for ; Wed, 9 May 2018 15:00:47 +0200 (CEST) Received: (qmail 5518 invoked by uid 500); 9 May 2018 13:00:45 -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 5503 invoked by uid 99); 9 May 2018 13:00:45 -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, 09 May 2018 13:00:45 +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 96DCD1807C4 for ; Wed, 9 May 2018 13:00:44 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.193 X-Spam-Level: * X-Spam-Status: No, score=1.193 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, URI_HEX=1.313] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id 6uuLD7diWYZl for ; Wed, 9 May 2018 13:00:42 +0000 (UTC) Received: from mail-oi0-f46.google.com (mail-oi0-f46.google.com [209.85.218.46]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 4B4DF5F666 for ; Wed, 9 May 2018 13:00:42 +0000 (UTC) Received: by mail-oi0-f46.google.com with SMTP id e80-v6so31367169oig.11 for ; Wed, 09 May 2018 06:00:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=d9RcSpeDFYL3qT9Jh9PMX78FzdQ5arxI3JL6hq8tMAQ=; b=XfSWHtQ/vx8Yldu5bg0p4Thlri0oNwCWzQ4dt46KoMNkDpBdFr1VvKW4Lw4RhUgMXO nuXr0850exD6wkA1E9FfDRXxA2zb8HsJohzjcZ6ODuR1v+iIuGtqCuP2Rcn2svyDYmCm OyHMqdla0Soq7QZyNEMG2vg/74j6cpnjaSAhunDN1FOfV1uS++5C2ue1iuBG+r3PihXo MTfF7OvL1WllfPPDFOimkH26jryFsDTfmR4FdzDzP4f0Zq7JQohG5GYOd4qR2E6ndyc/ YH2AXWApz1zCcitkzlkfofpIL3MegHtgMHRbJYTnu5sfbY06oh/MboarZIoEKb4W+q+v 4xSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=d9RcSpeDFYL3qT9Jh9PMX78FzdQ5arxI3JL6hq8tMAQ=; b=Ly1nV3RmXi+5j5qyRws/c4xtvITGxKFNIkuXHeB0PLX82y1SCh62hNCZA8E0X0RmRa nRSpe4aBczSyi1DrfUX1nps5jJi39LxJ1t8eVC+6LXKkiRDMkeWwSqjhcnungmPetlyp t6RRADActoPbzB7Ux/8hQjac6NrqUrh+7//7Cy/KDwte/Tl/R+eZS7N22nlSJxkj3P5i EtVDu2gH2f1MT66FLWHZnd/JJqRXe9c+ni+NOUulR/vQksGBvyVnpoTKEo/WGHGrIDzR OM3ySXxmqBJTDyfJ/XFQMiNiIYMdvalu2fpENDGkrOvW6V2IhvqGBV6isNlxVGJ9CmRN bkUg== X-Gm-Message-State: ALQs6tA4unX6s5ymdSM3WMI+6uyzCETWmKDceuxGaKLV/iagPMUm0uut 6c3W8H+usimGAZCTsGE8+G/RTdU3pGIe9vzk/Is7ipr8 X-Google-Smtp-Source: AB8JxZpufvdbB/VGHtBbTZpWY0QikGMILRr49V6BAJ+WTdSPfUJUsY/wYXcwgYmt4UGQeD/BxcLsIfUErFqaTJ7Rja0= X-Received: by 2002:aca:309:: with SMTP id 9-v6mr26692311oid.280.1525870840769; Wed, 09 May 2018 06:00:40 -0700 (PDT) MIME-Version: 1.0 Received: by 10.74.81.5 with HTTP; Wed, 9 May 2018 06:00:40 -0700 (PDT) In-Reply-To: <1525856185401-0.post@n3.nabble.com> References: <1525856185401-0.post@n3.nabble.com> From: Bryan Bende Date: Wed, 9 May 2018 09:00:40 -0400 Message-ID: Subject: Re: Query on searchAfter API usage in IndexSearcher To: java-user@lucene.apache.org Content-Type: text/plain; charset="UTF-8" Are you specifying a sort clause on your query? I'm not totally sure, but I think having a sort clause might be a requirement for efficient deep paging. I know Solr's cursorMark feature uses the searchAfter API, and a cursorMark is essentially the sort values of the last document from the previous result: https://github.com/apache/lucene-solr/blob/e30264b31400a147507aabd121b1152020b8aa6d/solr/core/src/java/org/apache/solr/search/SolrIndexSearcher.java#L1524-L1525 https://lucene.apache.org/solr/guide/7_3/pagination-of-results.html On Wed, May 9, 2018 at 4:56 AM, Jacky Li wrote: > I have encountered the same problem, I wonder if anyone know the solution? > > Regards, > Jacky > > > > -- > Sent from: http://lucene.472066.n3.nabble.com/Lucene-Java-Users-f532864.html > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org > For additional commands, e-mail: java-user-help@lucene.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org