How to remove a search index

The search index has a method for deleting a document. https://developers.google.com/appengine/docs/python/search/indexclass (Python) https://developers.google.com/appengine/docs/java/javadoc/com/google/appengine/api/search/ Index (java)

But how to remove the index itself?

A null pointer was indicated in the text search bar in the admin console.

but there is no button to delete.

+7
google-app-engine gae-search
source share
2 answers

Since you gae-search , I assume that your question relates to the search API index (i.e., the full-text search service, not the NDB / HRD datastore index).

Currently, you can delete documents in the index, but you cannot delete the index itself, for example. issue 8235 and 8490 . This search API restriction applies to all languages ​​supported by the Google App Engine.

vacuum_indexes only requests indexes in the data store, but I will also miss something similar for the search service.

+4
source share

When starting the local dev environment with version 1.9.x (and possibly earlier), you can pass this argument to dev_appserver.py to simply clear ALL of them, regardless of whether they have documents:

 --clear_search_indexes [CLEAR_SEARCH_INDEXES] 

It doesn't seem like there is a way to clear a separate index, although based on the statuses of the problems published above by Ani.

+2
source share

All Articles