Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6991501
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T19:30:41+00:00 2026-05-27T19:30:41+00:00

For a Google sitemap XML, I need all document id’s collected by Sphinx. But

  • 0

For a Google sitemap XML, I need all document id’s collected by Sphinx. But with 1000+ documents, if I try to get them all in a simple loop, it ultimately gives me Error: searchd error: offset out of bounds (offset=1000, max_matches=1000).

I could increase the max_matches setting, but that would kill performance.

And I don’t want to simply run a MySQL query, because there’s a UNION and a bunch of checks/rules in the Sphinx indexer query. And I want my query on one place for maintainability.

So what I’ve done now is, for each category (I need those too for the sitemap), I run a Sphinx query filtered on category. That way I stay below the 1000 documents limit.

There must be a better solution for this. Right?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T19:30:41+00:00Added an answer on May 27, 2026 at 7:30 pm

    I’ve posted PHP code for this here:
    http://sphinxsearch.com/forum/view.html?id=7215

    basically you just retreive the results 1000 documents at a time in a while loop. sitemaps dont care about the order of results in the file, so it doesn’t matter tha you need to get the results in document_id order.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an XML file (a sitemap using Google's <image:image> extensions) that I need
I'm trying to ping Google when my web site's sitemap is updated but I
I have a Linq-2-XML query that will not work if a google sitemap that
I've submitted sitemap.xml files to google webmaster tools and it says that i has
If I submit a sitemap.xml which does not contain all of the pages of
When validating my XML sitemap , google says: Invalid date An invalid date was
I have two scripts: xmlsitemap.php (Google XML sitemap) sitemap.php (GUI user friendly sitemap) I
I've read the Google docs on sitemap formats but there's one thing they don't
Google Sitemap Plugin for Wordpress requires 755 permission for sitemap.xml file which is under
I use the new wordpress plugin, google xml sitemap. Hello, lets say I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.