start is an absolute row start parameter, not a page number. So, you
need to calculate the next page start yourself.

Regards,
   Alex.
----
http://www.solr-start.com/ - Resources for Solr users, new and experienced


On 11 December 2016 at 22:52, atawfik <contact.txl...@gmail.com> wrote:
> Hi all,
>
> I am experiencing a weird behavior with Solr. Pagination gives duplicates
> results.
>
> Requesting
> *http://localhost:8983/solr/tweets/select?q=text:test&start=0&wt=csv&fl=id,timestamp&fq=doc_type:tweet*
> gives me:
>
> id,timestamp
> 801943081268428800,2016-11-25T00:18:24.613Z
> 802159834942541824,2016-11-25T14:39:42.716Z
> 801932818301521920,2016-11-24T23:37:37.731Z
> 801945904328544256,2016-11-25T00:29:37.683Z
> 801947217439272960,2016-11-25T00:34:50.753Z
> 801944318885982208,2016-11-25T00:23:19.684Z
> 801944683282894848,2016-11-25T00:24:46.563Z
> 801945048527097856,2016-11-25T00:26:13.644Z
> *802339145678848000*,2016-11-26T02:32:13.727Z
> 802340356973010944,2016-11-26T02:37:02.522Z
>
> However, requesting
> *http://localhost:8983/solr/tweets/select?q=text:test&start=1&wt=csv&fl=id,timestamp&fq=doc_type:tweet*
> gives me:
> id,timestamp
> 802159834942541824,2016-11-25T14:39:42.716Z
> 801932818301521920,2016-11-24T23:37:37.731Z
> 801945904328544256,2016-11-25T00:29:37.683Z
> 801947217439272960,2016-11-25T00:34:50.753Z
> 801944318885982208,2016-11-25T00:23:19.684Z
> 801944683282894848,2016-11-25T00:24:46.563Z
> 801945048527097856,2016-11-25T00:26:13.644Z
> *802339145678848000*,2016-11-26T02:32:13.727Z
> 802340356973010944,2016-11-26T02:37:02.522Z
> 802345158679363584,2016-11-26T02:56:07.338Z
>
>
> The index is already optimized, I am not adding any documents when I issue
> the queries and I am using Solr 6.2.1.
>
> Regards
> Ameer
>
>
>
>
> --
> View this message in context: 
> http://lucene.472066.n3.nabble.com/Duplicate-docs-in-Solr-pagination-tp4309292.html
> Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to