Showing total replies, total users, and last reply of a topic in Algolia search results

AI-generated summary

james1 is using the Algolia-search plugin and wants to display additional topic metadata—such as total replies, total users, and last reply date—in search results. While this data is available on the topic page, it’s not included in Algolia’s indexed records. The example shows a search result for a post in the topic “Using Sync Gateway & CBL with Capella,” which includes basic post and topic details but lacks the requested information. James1 is asking if it’s possible to include these fields in Algolia’s search results.

I am using the algolia-search plugin on our site. I want to display the main topic along with a number of total replies, total users, and date of last reply. This data is currently available on the topic page but not available in Algolia search results. Is there anyway to get this data in Algolia?

For example, the following post shows the created date, the last reply date, number of replies, number of views, and number of users.

Post: https://www.couchbase.com/forums/t/using-sync-gateway-cbl-with-capella/32008

Algolia has the following data when I search the topic title, “Using Sync Gateway & CBL with Capella.” This record indicates that it is the 2nd post in the topic. Is it possible to show the data that is available on the topics page?

{
  "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"
}