Forum
Search Results Excerpt
Is it possible to control which fields from a page template appear in a search results excerpt?
It seems the content shown in the search results excerpt is based on the order of the fields in a template.
My template has a title, location then tour summary text-field ordered as 1, 2, 3 respectively ... these three fields are then shown on the search results page using the following tag.
<perch:search id="result_excerpt" encode="false" />
All three fields are shown on my tours page.
Ideally, I'd like to include just the third field "tour summary" in the search results - is there any way to achieve this.
Regards James
The excerpt is built from the content that surrounds the matching keyword. If you don't want a field to be searched you can set
searchable="false"