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:
Basically, I do want to search on a field, but I don't want that field to be included in the EPISERVER_SEARCH_DISPLAYTEXT field in Lucene. I can't be the only one with such a requirement, can I?
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):
Then, after doing a search, the relevant part of the searchpage template is: