Smart Search - No content for some document types

Yehuda Lando asked on September 25, 2014 16:37

Hi,

I just noticed that on the search results page, either my own or the one in the search preview, don't show the content for some of my document types (however on others it works fine). Even if I just put <%# Eval("Content") %>, it will show nothing. But if I put <%# GetSearchValue("_content") %>, it will show the entire content (including url and image url, which is not what I want, but it does include the content I want it to show).

What can cause this? I tried resetting the document type search settings by clicking Set automatically button, but it's still the same.

Thanks

Recent Answers


Yehuda Lando answered on September 25, 2014 16:54

Ok, for some reason Content field as DocumentContent didn't return any result for those document types. If I set them to one of the document fields it worked.

1 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on September 25, 2014 17:40

Yes, very important to set those values after you set the doc type up. In v7 an earlier, you did that when you created the doc type. Little different in v8.

0 votesVote for this answer Mark as a Correct answer

Yehuda Lando answered on September 25, 2014 18:01 (last edited on September 25, 2014 18:01)

But why does it work for some documents? I usually left the Content field set as DocumentContent, and it worked.

Any idea what exactly is this DocumentContent?

0 votesVote for this answer Mark as a Correct answer

Martin Danko answered on December 6, 2014 13:19

Hello Yehuda,

DocumentContent is one column of the CMS_Document table which stores the content of editable regions on pages.

Best regards, Martin

0 votesVote for this answer Mark as a Correct answer

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