Gravatar for

Question by Lautaro Bonetto, Dec 17, 2014 1:35 PM

How to identify a top result item on the JSON result of the Front-End server?

Hi everybody,

I have a Coveo Index server and a Front-End server as well.

I'm consuming the JSON from the front-end server on the pages using our javascript code.

I've added some Top Results words on the index server, and I'm seeing them at the top of the JSON data, but I didn't find any flag on the json to identify these top result items. I want to show them on the page using another HTML, but I cannot isolate them from the rest of the result.

Is there some difference on the JSON data to identify them?

Thanks, Lautaro

1 Reply
Gravatar for

Answer by Martin Laporte, Dec 18, 2014 5:39 AM

There is an isTopResult property on JSON results that serves that purpose.

Ask a question