Hey @Per_Burstrom.
Here is an example of a modified Reference UI that customizes the result view to use an image. Perhaps you can use this as a starting point: https://codesandbox.io/embed/video-games-tutorial-with-images-5wsqs.
The key things to note here are:
- We create a new file called
ResultView.js
, in the same folder asApp.js
- We imported that file into
App.js
in the lineimport ResultView from "./ResultView";
- We passed
ResultView
in theresultView
parameter to theResults
component:
<Results
titleField="name"
urlField="image_url"
resultView={ResultView}
/>
The Reference UI is built with a library called Search UI. All of the documentation for that can be found here: https://github.com/elastic/search-ui/blob/master/ADVANCED.md#customization.
Note that you'll need to customize ResultView.js
to use your data set.
Hope this helps!