2024-04-26 22:39:34 发布
网友
我正在使用appenginesearchapi在文档中搜索。返回的结果显示在django模板上,如下所示
{% for item in results %} {{item.id.0.value}} {{item.name.0.value}} {% endfor %}
我可以显示模板中的所有字段,但结果的文档id除外。有人能帮我弄清楚如何在模板中显示文档id吗?你知道吗
根据documentation:
...you can examine the id attribute of the result to discover the doc_id that was generated.
因此,示例中的.id属性实际上就是您要查找的doc\u id。你知道吗
根据documentation:
因此,示例中的.id属性实际上就是您要查找的doc\u id。你知道吗
相关问题 更多 >
编程相关推荐