
Overview
I created a sample repository using @elastic/search-ui with Nuxt.
You can try it from the following URL.
Background
@elastic/search-ui is described as follows.

A JavaScript library for the fast development of modern, engaging search experiences with Elastic. Get up and running quickly without re-inventing the wheel.
A sample repository using Vue.js is published at the following link.
This time, I created a sample repository using Nuxt, based on the above repository.
Notes
Initial Search
By specifying the following, I was able to execute a search on initial load.
alwaysSearchOnInitialLoad: true,
This is documented in the following official documentation.

Reference: Creating a Custom Connector
By creating a custom connector with reference to the following, it was possible to use APIs other than Elasticsearch.

Specifically, by following the steps below, it was also possible to use it in combination with the JSON:API Search API created in Drupal.
Summary
I hope this serves as a useful reference for creating applications with search functionality.



Comments
…