Results 1 to 4 of 4

Thread: Inconsistent <opensearch:startIndex> values in XML output

  1. #1
    Join Date
    Dec 2008
    Posts
    15

    Default Inconsistent <opensearch:startIndex> values in XML output

    I do an XML CGI search and get 152 results, paged into 10 results per call.

    For the first page, opensearch:startIndex=1. For the second page, opensearch:startIndex=10 (!). For page N != 1, opensearch:startIndex= 10*N.

    In other words, two different rules seem to be used for constructing startIndex. I've worked around this by:

    Code:
    startRow = startIndex;
    if (startRow==1) startRow=0;
    Which works. But clearly that's not ideal

  2. #2
    Join Date
    Dec 2004
    Location
    Sydney
    Posts
    4,155

    Default

    Yes, I agree this does seem a little strange. We should either number the XML results as,
    0, 10, 20, 30...
    or
    1, 11, 21, 31...
    and not
    1, 10, 20, 30...

    We have a closer look at fix it up for the next release.

  3. #3
    Join Date
    Dec 2004
    Location
    Sydney, Australia
    Posts
    3,571

    Default

    We have confirmed that this is a bug. The startIndex value returned in the XML results are off by 1 for page 2 or later.

    It will be fixed in V6.0 build 1005.
    --Ray
    Wrensoft Web Software
    Sydney, Australia
    Zoom Search Engine

  4. #4
    Join Date
    Dec 2008
    Posts
    15

    Default

    Thanks for the fix - I've verified it in 1005.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •