Recombee Module not listing recommented items to page

Created on 18 January 2024, 5 months ago
Updated 6 February 2024, 5 months ago

Problem/Motivation

I have installed and configured the recombee module.
And configured the block to place recomented items with a specific scenario and placed the block to content area.
It is only listing the Block title, no other data are shoing n the block area.

Steps to reproduce

After loading the page I can see through inspect element that the API call is getting the response from recombee, But some how it is not listing
Anybody can solutions, please.

Thanks

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

💬 Support request
Status

Postponed: needs info

Version

2.0

Component

Code

Created by

🇮🇳India ppshameer

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @ppshameer
  • Status changed to Postponed: needs info 5 months ago
  • 🇮🇳India naveenvalecha New Delhi

    @ppshameer
    Have you configured the recombee configuration here /admin/config/search/recombee ?

    Can you share what response are you getting from recombee?

  • 🇮🇳India ppshameer

    Hi naveenvalecha,
    I am sorry, I have missed your message.
    Still I ma facing the issue.
    Yes, I have configured /admin/config/search/recombee.
    =====================================
    The response I have recived from recombee is as follows :

    {
    "recommId": "4ed76ab87dc85856eccc3efbaffac5a4",
    "recomms": [
    {
    "id": "de9b8c3d-4643-4ec3-91e5-0a24953cf989",
    "values": {
    "media:content": "http://localhost/recomarkaz/web/sites/default/files/2024-01/mads-umich_0...",
    "pubDate": 1704631063,
    "dc:creator": "Content Administrator",
    "title": "Master of Applied Data Science",
    "link": "http://localhost/recomarkaz/web/%3Ca%20href%3D%22/recomarkaz/web/node/1%...",
    "description": "

    Become a data science leader with a degree from the #1 public research university in the U.S.

    Learn in-demand data science skills and how to apply them to real-world problems with the online Master of Applied Data Science (MADS) degree from the University of Michigan School of Information.

    ",
    "dc:skills": "Big Data",
    "dc:subject": "Data Science"
    }
    },
    {
    "id": "f3d97e16-bb11-4286-836b-5a372844b349",
    "values": {
    "media:content": "http://localhost/recomarkaz/web/sites/default/files/2024-01/msdata.jpg",
    "pubDate": 1704631543,
    "dc:creator": "Content Administrator",
    "title": "Master of Science in Data Analytics Engineering",
    "link": "http://localhost/recomarkaz/web/%3Ca%20href%3D%22/recomarkaz/web/node/2%...",
    "description": "

    A master’s degree in one of the hottest fields—at your pace, from anywhere, with or without prior experience

    Prepare for a career on the frontier of data analytics, with the online MS in Data Analytics Engineering (DAE) program from the College of Engineering at Northeastern University.

    Whether you’re an experienced engineer or brand-new to data analytics, this program will immerse you in specializations such as data visualization, database design and data mining, giving you the skills to bridge the gap between raw data and actionable insights.

    ",
    "dc:skills": "Data Analytics engineering",
    "dc:subject": "Data Science"
    }
    },
    {
    "id": "627fb354-4f30-413a-8bfc-15fc42ad761d",
    "values": {
    "media:content": "http://localhost/recomarkaz/web/sites/default/files/2024-01/header_mcsds...",
    "pubDate": 1704631703,
    "dc:creator": "Content Administrator",
    "title": "Master of Computer Science",
    "link": "http://localhost/recomarkaz/web/%3Ca%20href%3D%22/recomarkaz/web/node/3%...",
    "description": "

    Advance your career with a master's from a top-5 computer science school. If you want to launch or advance a successful data science or computer science career, you can learn the most in-demand skills while earning your Master of Computer Science. As a graduate, you’ll be qualified to pursue a variety of roles: scientist, analyst, engineer, leader, and more. In 2023, Fortune ranked University of Illinois as having the #1 Best Online Master’s in Data Science Program.

    ",
    "dc:skills": "Conputer Science",
    "dc:subject": "Data Science"
    }
    }
    ],
    "numberNextRecommsCalls": 0
    }

  • 🇮🇳India naveenvalecha New Delhi

    Have you placed the"Recombee Public Scenario"(recombee_public_scenario) block?

  • 🇮🇳India ppshameer

    Yes, I have placed this block on content area, So only I am getting the response from recombee through inspect element.

    Does it requires any settings/editing in twig file?

  • 🇮🇳India naveenvalecha New Delhi

    It doesn't require editing in the twig file.
    There's a video on the project page of how this works https://www.youtube.com/watch?v=1EQ_guSlrjI

  • 🇦🇺Australia murrayw

    I can see that you are indeed getting results back as JSON. This is good. The next step is to make sure that they are being transformed properly. We use a module called JSON Template to manage that on the client side. You will need to configure the block to use a template to transform the results. Please make sure that the block has been configured to use a template.

    The Recombee module ships with a simple Handlebars template which will print out the title for the items coming back. Please take a look in the module to see how this is working. If you wish to customise the the response, you will need to implement your own handlebars template, using thsi initial one as a starting point. The handlebars template can be placed either into a module or into the theme as it is discoverable there as well.

Production build 0.69.0 2024