GAE development server keep full text search indexes after restart?

不羁岁月 提交于 2019-12-10 03:12:40

问题


Is there anyway of forcing the GAE dev server to keep full text search indexes after restart? I am finding that the index is lost whenever the dev server is restarted.

I am already using a static datastore path when I launch the dev server (the --datastore_path option).


回答1:


This functionality was added a few releases ago (in either 1.7.1 or 1.7.2, I think). If you're using an SDK from the last few months it should be working. You can try explicitly setting the --search_indexes_path flag on dev_appserver.py; it's possible that the default location (/tmp/) isn't writable. Could you post the first few lines of the logs from when you start dev_appserver?




回答2:


in case anyone else comes looking for this, it looks like the simple solution is now to specify

--storage_path=/not/the/tmp/dir

you can still override this with --datastore_path etc.

https://developers.google.com/appengine/docs/python/tools/devserver (at the bottom of the page..)




回答3:


Look like this is not an issue anymore. according to documentation (and my tests):

"The development web server simulates the App Engine datastore using a file on your computer. This file persists between invocations of the web server, so data you store will still be available the next time you run the web server."

Please let me know if it is otherwise and I will follow up on that.



来源:https://stackoverflow.com/questions/13843907/gae-development-server-keep-full-text-search-indexes-after-restart

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