Can I change fields displayed in the search interface when I generate an interface from the console?

Background:

When you generate an interface from the console for a website collection, the interface displays Title, Description, image, and URL by default.

Answer

The interface created via the console uses our standard Search Widgets you can customise the fields displayed by modifying the field assignment. In the code example below a field called name is being assigned to the title of the search result and field called brand to the subtitle.

"fields": {
	"title": "name",
	"subtitle": "brand",
	"url": "https://www.mysite.com/products/${id}"
},
CODE

Here is a working example https://codesandbox.io/s/list-filter-87xhw and here is a list of the field assignments that can be made https://docs.search.io/developer-documentation/fundamentals/search-ui-widgets/configuration-objects#fielddictionary

In order to change or display other fields in the interface when using React SDK or JS SDK, refer to this how-to-guide.