How to customize search results

Hi,
I am trying to display the search result with highlighted and snipped.
For example, I have attributes [title, comment ,id, name, brand, price, type]
I want nothing to show up until I type a single word in a search bar, then I want to display whatever the attributes matched.

instantsearch.widgets.hits({
container: '#hits',
templates: {
  item: `
	<div id="clearfix" >
	<p>{{#helpers.highlight}}

{ “attribute”: “I assume this part shouldn’t be just the name of the attribute??” }
{{/helpers.highlight}}



`,
},
}),

Hi @ynaka, We have this documentation that shows you how to search conditionally. The attribute parameter does need the name of the attribute. Here is a codesandbox to demonstrate the basic instantsearch.