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 8130279
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T08:39:17+00:00 2026-06-06T08:39:17+00:00

In my business logic, I first need to check if an Appengine Search API

  • 0

In my business logic, I first need to check if an Appengine Search API Index exists. If it exists, I then determine length.

for index in search.list_indexes(fetch_schema=False):
   if name == index.name:
        indexed = True

The problem is that the entire list is not being returned. So I tried the following:

for index in search.list_indexes(fetch_schema=False, limit=500):
    logging.info("sent name: " + name + " : official index name: " + index.name)

The results was that it limited it to 100 indexes. I must be missing something.

My question is two-fold:

  1. Is there a better way to check if an index exists? (my way feels wrong)

  2. Why might list_indexes only return 100 when we clearly have more?

Edit:—————————————–

Based on @skreft’s suggestion, I updated my code with this:

    for index in search.list_indexes(fetch_schema=False, include_start_index=True, start_index_name="some_index", limit=1000):
        logging.info("sent name: " + name + " : official index name: " + index.name)
        if name == index.name:
            indexed = True`enter code here`

But the problem is I’m getting a very cryptic error message, and I followed the docs pretty explicitly. Anybody else have this happen? (error below):

Traceback (most recent call last):
  File "/base/data/home/apps/s~searchbertha-hrd/82.359784956262345840/models.py", line 1898, in build_searchable_index
    for index in search.list_indexes(fetch_schema=False, include_start_index=True, start_index_name=name, limit=1000):
  File "/base/python_runtime/python_lib/versions/1/google/appengine/api/search/search.py", line 675, in list_indexes
    raise _ToSearchError(e)
InvalidRequest
  • 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-06-06T08:39:20+00:00Added an answer on June 6, 2026 at 8:39 am

    Try using the parameters start_index_name and include_start_index.

    See the docs for further information.

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

Sidebar

Related Questions

For reasons justified by business logic, I need to convert the character Æ to
I need to create n-tier application with the following parts: Data server Business logic
I'm using Entity Framework for the first time, and I need to add business
I need a gear for custom authorization in business logic classes. It has to
Let's say you have a business logic method that can perform some operation across
How would I usually represent this business logic in a graph? A is true
I'm trying to develop business logic for a dynamic site using nusoap on server
I wish to add some type of business logic constraint to a table, but
i created the following sample method in business logic layer. my database doesn't allow
We usually put unnecessary checks in our business logic to avoid failures. Eg. 1.

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.