GAE开发服务器在重启后保留全文搜索索引? [英] GAE development server keep full text search indexes after restart?

查看:93
本文介绍了GAE开发服务器在重启后保留全文搜索索引?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法强制GAE开发服务器在重启后保留全文搜索索引?我发现每当dev服务器重新启动时索引都会丢失。

当我启动dev服务器时,我已经使用了静态数据存储路径( - datastore_path 选项)。

解决方案

我认为是1.7.1或1.7.2)。如果您使用过去几个月的SDK,它应该可以工作。您可以尝试显式设置 dev_appserver.py 上的 - search_indexes_path 标志。可能缺省位置( / tmp / )不可写。您可以在启动dev_appserver时发布日志的前几行吗?


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

解决方案

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?

这篇关于GAE开发服务器在重启后保留全文搜索索引?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆