我正在我们网站上使用 algolia-search 插件。我想显示主话题以及回复总数、用户总数和最后回复日期。此数据目前在话题页面上可用,但在 Algolia 搜索结果中不可用。有什么方法可以在 Algolia 中获取此数据?
例如,以下帖子显示了创建日期、最后回复日期、回复数、浏览数和用户数。
帖子:https://www.couchbase.com/forums/t/using-sync-gateway-cbl-with-capella/32008
当我搜索话题标题“Using Sync Gateway & CBL with Capella”时,Algolia 具有以下数据。此记录表明它是话题中的第 2 篇帖子。是否可以显示话题页面上可用的数据?
{
"url": "/t/using-sync-gateway-cbl-with-capella/32008/2",
"post_id": 99226,
"post_number": 2,
"created_at": 1634743086,
"updated_at": 1634743086,
"reads": 30,
"like_count": 0,
"image_url": null,
"word_count": 33,
"content": "Hello,\nSync Gateway and Couchbase Lite are not available to use with Couchbase Capella at the moment. Please find more details on Couchbase Capella capabilities here - https://www.couchbase.com/products/capella\nThanks",
"user": {
"id": 11384,
"url": "/u/payal",
"name": "Payal Gupta",
"username": "Payal",
"avatar_template": "/user_avatar/forums.couchbase.com/payal/{size}/8557_2.png"
},
"topic": {
"id": 32008,
"url": "https://forums.couchbase.com/t/using-sync-gateway-cbl-with-capella/32008",
"title": "Using Sync Gateway & CBL with Capella",
"views": 1094,
"slug": "using-sync-gateway-cbl-with-capella",
"like_count": 0,
"tags": []
},
"category": {
"id": 41,
"url": "/c/couchbase-capella/41",
"name": "Couchbase Capella",
"color": "0088CC",
"slug": "couchbase-capella"
},
"objectID": "99226"
}