I would like to customize the output of each search result item printed on the search result page. Right now it automatically prints a portion of the content of each item, but I'd like more control. I would like to specify what fields to display in the search result. For example I'd like to output field_image followed by field_mytextfield. Rather than whatever Drupal is doing to output the trimmed content of the result.
I'm using a template to customize the output already
{{ title_prefix }}
<div class="search-result-item">
<div class="search-title-header">
<h4{{ title_attributes }}>
<a href="{{ url }}">{{ title }}</a>
</h4>
</div>
{{ title_suffix }}
{% if snippet %}
<p{{ content_attributes }}>{{ snippet }}</p>
{% endif %}
</div>
However I don't seem to have access to what is inside snippet, and I'm not sure how to directly access the fields of the result. I'd like to use the content type's teaser as the result display but I'm not sure how to use that.