title: Drupal 8 - how to customise search result template
body: <p>I have a custom content type with several fields like Price, Product Summary, Product image etc. Is there any way I can access these fields separately on search result page?</p>
  
  <p>I printed the rendered array on <code>mytheme/item-list.html.twig</code> using <code>kint(item.value)</code> which shows that I can only access <code>title</code>, <code>url</code> and <code>type</code> separately like <code>{{ item.value['#result'].url }}</code>, <code>{{ item.value['#result'].title }}</code>. But don't see variables like <code>product_image</code>, <code>product_summary</code> etc. in rendered array.</p>
  
  <p>According to Twig template suggestion the template I need to override is <code>search-result.html.twig</code>. So I copied <code>/core/themes/stable/templates/content/search-result.html.twig</code> to my theme's folder. However, the <code>{{ snippet }}</code> variable does not have information I want to access.</p>
  
  <p>I went through the following steps to customise the result output:</p>
  
  <ol>
  <li>Went to <code>/admin/structure/types/manage/product/display</code> (<code>Structure &gt; Content Types &gt; Product &gt; Manage Display)</code>. Turned on <code>Search Index</code> and <code>Search result highlight input</code>.</li>
  </ol>
  
  <p><a href="https://i.stack.imgur.com/YOzuA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YOzuA.png" alt="enter image description here"></a></p>
  
  <ol start="2">
  <li>Navigated to <code>Search result highlight input</code> tab and added (enabled) two fields Product summary and Product price</li>
  </ol>
  
  <p><a href="https://i.stack.imgur.com/9waxp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9waxp.png" alt="enter image description here"></a></p>
  
  <ol start="3">
  <li>Went back to search result but I still cannot see the those variables in rendered array.</li>
  </ol>
  
  <p>Can somebody please tell me the best way to accomplish the above?</p>