Gravatar for

Question by nimishmis, Dec 3, 2015 7:57 AM

Coveo Search for Sitecore inner items


In one of project page ,i am displaying one more componet which is using different template(other than product template).When we search for componet conent i am not able to see in search results.How to see these component content details in search details.

We are using Coveo Js Framework for Sitecore.

Regards, Nimish

1 Reply
Gravatar for

Answer by Sébastien Belzile, Dec 3, 2015 8:27 AM

To clarify: You are indexing a page built with different components. You want the content of these components content to be linked to the page where they are being rendered when you search? In other words: the final rendered HTML content of your pages should be searchable?

Is this what you are looking for?

Gravatar for

Comment by nimishmis, Dec 3, 2015 8:36 AM

Hi , Thanks for your reply.I will explain you in detail.I have one product page.When i search with product name i can see prodct page.In my product page i have separate componet(Sublayout) with some sepcific details.(Ex:-Feature).for this i am using one more Data template.So My requirement is .When i search using Feature I am expecting Product page details which that feature having in my search results.Please guide me how to impliment to get this done.

Thanks, Nimish

Gravatar for

Comment by Sébastien Belzile, Dec 3, 2015 9:19 AM

Depends on the content of your sublayout (how you implemented the "specific details").

I suppose your sublayout has fields that you fill by hand (or link to other Sitecore items)? In that case, a possible approach would be computed fields.

The classical approach when linking "features" to a "product" is to have a field "featureItems" on your product items. This field references a bunch of "feature" items. You then create a computed field to create a field "features" on your product.

You render your specific details in a sublayout, the computed field approach can be applied to your case. The objective of your computed field is to create a field "feature" on your product page item.

Ask a question