Meta Description in search result Transformation

Nishant Khandelwal asked on February 16, 2017 19:12

Hi,

In the search result page I used Smart Search Result webpart. I am able to show TItle of page and its URL.

Can we also show Meta Description in result page by transformation?

Thanks.

Recent Answers


Peter Mogilnitski answered on February 16, 2017 19:42

What is your CMS version? if 9+ they are indexed by default

GetSearchValue("DocumentPageDescription")

GetSearchValue("DocumentPageTitle")

GetSearchValue("DocumentPageKeyWords")

3 votesVote for this answer Mark as a Correct answer

Chetan Sharma answered on February 17, 2017 17:12

Another way to do is to map the values in the Page Type -> Search fields settings and use 4 default fields and map it to the desired fields.

This way you can use Title to show DocumentPageTitle.

However, Peter's approach is better.

0 votesVote for this answer Mark as a Correct answer

IT Admin answered on September 15, 2017 17:22 (last edited on September 15, 2017 17:23)

What would I need to check if this wasn't working for me?

<%# GetSearchValue("DocumentPageDescription") %>

Thanks

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.