how to delete search index in GAE Search API

安稳与你 提交于 2019-12-07 17:04:24

问题


I use Google App Engine Search API, i dont know what is the name of the feature in image below, i want to delete the "customerindex" and "customers"

maybe the right question is "how to delete the search index?"


回答1:


On production you can delete the documents within a index but index will still be visible

https://developers.google.com/appengine/docs/python/search/#Python_Deleting_documents_from_an_index

If you want to delete the index from development server, just restart it.




回答2:


I don't think there is a method available to just delete the search index as is in the Production environment.

You could programmatically look at deleting the documents from the search index (a batch call also exists).

A couple of other SO posts related to this are given here:

  • Delete Indexed Full-Text Search in Google App Engine
  • How to delete or reset a search index in Appengine


来源:https://stackoverflow.com/questions/20877210/how-to-delete-search-index-in-gae-search-api

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!