Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GAE development server keep full text search indexes after restart?

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).

like image 973
HorseloverFat Avatar asked Dec 12 '12 16:12

HorseloverFat


2 Answers

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?

like image 76
Haldean Brown Avatar answered Nov 04 '22 02:11

Haldean Brown


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..)

like image 33
lecstor Avatar answered Nov 04 '22 02:11

lecstor