python - Google App EngineSearch API 中的分页

标签 python google-app-engine

我想在 google app engine search api 中使用游标(不偏移)进行分页。向前分页很简单,问题是如何实现向后分页。

最佳答案

我猜你在使用游标向后翻页时运气不好。

The Search API also supports the use of query cursors. Cursors are another way to indicate the point from which to begin a query, allowing you to continue a search from the end of the previous result set. Using a cursor is generally more efficient than using offsets. However, the Search API doesn't currently support a "reverse cursor" as does the Datastore API, making it more difficult to to implement backward paging. For this reason, the example application uses offsets rather than cursors to paginate its query results. You can find an example using cursors here.

source

关于python - Google App EngineSearch API 中的分页,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21545635/

相关文章:

python - 分离轴定理和Python

python - 如何在 GAME 中检查记录是否存在

python - 根据其 vars 字典获取模块实例

python - dask 将数据帧导出到远程存储(S3)

python - Excel - 查找前一行和各种范围大小的最大值

java - App Engine 拉取队列仅加载任务的子集

java - Appengine 上的 Gson

python - 使 id 不区分大小写,但在端点原始数据存储中保留大小写

python-2.7 - GAE导入端点 "No module named endpoints"

python - 使用hadoop的python流无法正常工作