We are transitioning over to a new forum platform. Please post new issues there. Existing threads will be dealt with here unless you choose to move them over. Visit the new forum

Forum

Thread tagged as: Question, Problem

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

James Ng

James Ng 0 points

  • 3 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

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"