Add a custom block to render the search UI

Created on 26 June 2025, 9 days ago

Problem/Motivation

Creating a search page with Typesense isn’t exactly beginner-friendly. Right now, if you want to set one up, you need to dive into code and manually build it using the InstantSearch.js library. This can be a real challenge for SiteBuilders or content editors who don’t have much coding experience. As a result, many users might shy away from using Typesense, even though it's a powerful search engine.

Proposed resolution

To make things easier, I’m working on a ready-to-use search block that comes with a clean, standard UI out of the box. This block can be easily added to any part of the site—no coding required. With this approach, even non-developers can take full advantage of Typesense and offer fast, modern search functionality on their Drupal sites. It’s a big step toward making advanced search more accessible to everyone!

Feature request
Status

Active

Version

1.0

Component

User interface

Created by

🇮🇹Italy robertoperuzzo 🇮🇹 Tezze sul Brenta, VI

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @robertoperuzzo
  • 🇮🇹Italy lussoluca Italy

    Those two issues are about improving the facets options on the test search page we currently have in the backend:

    I don't plan on improving that search page much beyond the current version. Instead, we can use those ideas for the frontend block.

    What do you think?

  • 🇮🇹Italy robertoperuzzo 🇮🇹 Tezze sul Brenta, VI

    I think some of the suggested improvements are a frontend matter, so it would be a good idea to take them into account. The first step is to create the frontend block; then, I consider which of those improvements to implement as part of block configuration and which as schema settings. We bear in mind that the road is to deliver an easy way to place a default search block with the basics. More improvements will be considered going forward.

  • @robertoperuzzo opened merge request.
  • 🇮🇹Italy robertoperuzzo 🇮🇹 Tezze sul Brenta, VI
Production build 0.71.5 2024