Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Page Keywords inside Smart Search results transformation View modes: 
User avatar
Member
Member
casey-catalysis - 3/14/2011 3:00:39 PM
   
Page Keywords inside Smart Search results transformation
I'm trying to display the page keywords from the MetaData tab of pages in a search results transformation. I've tried using <%# Eval() %> and <%# GetSearchValue() %> with both "DocumentTags" and "DocumentPageKeyWords" as parameters, but none of those actually return any data. I know I can add a "Keywords" field to each document type and access that way, but I was hoping there would be a way to do this with the built in Kentico functionality.

User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 3/15/2011 11:40:09 AM
   
RE:Page Keywords inside Smart Search results transformation
Hello,

I've tried the same approach and it is working fine. I've used teh following transformation:

<%# GetSearchValue("DocumentTags") %>

And the tags are displayed. Have you rebuild the smart search indexes after adding the tags in CMSSiteManager / Administration / Smart Search? Could you please also check the following?

1) Are you using the correct search index?
2) Are you modyfying the correct document (does the document listed in the search results have any tags at all?

Best regards,
Boris Pocatko

User avatar
Member
Member
casey-catalysis - 3/15/2011 1:01:35 PM
   
RE:Page Keywords inside Smart Search results transformation
Aha, just needed to rebuild the index. Thanks!