Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
AI OnAI Off
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
I'm trying to have a field that is indexed and put in the EPiServer Search index, but isn't included in the EPISERVER_SEARCH_DISPLAYTEXT. This is because the field stores the meta keywords and description, and we do like to use them to search, but they're showing up at the beginning of the displaytext field.
How can I make a piece of text indexed, but not stored in the EPISERVER_SEARCH_DISPLAYTEXT?
My model is (very simplistic):
public class ExamplePage : PageData { [Searchable(true)] public virtual string MetaKeywords { get; set; } [Searchable(true)] public virtual string MetaDescription { get; set; } [Searchable(true)] public virtual string Intro { get; set;} public virtual ContentArea ContentBlocks { get; set; } }
Then, after doing a search, the relevant part of the searchpage template is: