标签: python django google-app-engine full-text-search
我正在使用app engine search api在文档中搜索。返回的结果显示在django模板上,如此
{% for item in results %} {{item.id.0.value}} {{item.name.0.value}} {% endfor %}
我能够显示模板中的所有字段,但结果的 doc_id 除外。有人可以帮我看一下如何在模板中显示doc_id吗?
答案 0 :(得分:0)
根据documentation:
...你可以检查结果的id属性来发现 生成的doc_id。
因此,示例中的.id属性实际上是您正在寻找的doc_id。