I have managed to get search results using LINQ way, I can access different fields of the searched document, including Title
, Url
, Path
, etc.
I can also access Content
property of the document but that is not showing actual content of the document. It is showing Title
of the document separated by -
, for example if the searched document Title
is Video news items
, Content
property contains Video-news-items|Video news items
.
How can I get actual content of the searched document?
Code I am using to search document is explained in another post.
Based on your other question, I assume you are using the base SearchResultItem
class. You can inherit from this class and add Properties that map to specific fields in your items. you can then just use the properties as normal. This article explains the process:
If you haven't yet done any research into Sitecore 7 search yet, I would suggest that you do some. The concepts may not be familiar.