How to customize search results

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.

container: '#hits',
templates: {
  item: `
	<div id="clearfix" >

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


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.