Sitecore 7, Content Search, "Content" property of the document is not showing actual content

StackOverflow https://stackoverflow.com/questions/23624253

  •  21-07-2023
  •  | 
  •  

Pregunta

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.

¿Fue útil?

Solución

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:

Sitecore 7 POCO's explained

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.

Otros consejos

I think this is showing meta title for this page

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top