Gravatar for

Question by cdejesusdev, Jan 27, 2017 2:08 PM

CoveoResultList results appear as [object Object]

Hi all,

I am using this (the Subject input):

<div class="CoveoSearchbox" data-add-search-button="false" data-enable-search-as-you-type="true" id="subject"></div>

and displaying the results here:

<div class="CoveoResultList" data-wait-animation="fade" data-auto-select-fields-to-include="true" style="float:right; width: 50%; margin-top: 5px; padding-top: 5px;"></div>

However, the results are coming back as [object Object] instead of the actual articles that it finds. If I click on those links, I still get linked to the article, but the verbiage does not display in the search results.

alt text

Gravatar for

Comment by Jean-François L'Heureux, Jan 30, 2017 10:02 AM

Have you added any result template in your CoveoResultList? Without a result template, the CoveoResultList component do not know how to display your results. It tries to display their "title" property. If there is no "title" property, I guess what you are experiencing is the default display.

0 Reply
Ask a question