Add option to append database results to the response

Created on 3 September 2025, about 1 month ago

New Features

  • Optional database-backed results beneath AI answers, loaded via AJAX with a โ€œLoading database results...โ€ state, synchronized pagination, and smooth scrolling.
  • Block settings include a toggle and selector to enable/choose DB results; native Views results can be embedded alongside AI output.

In order to use the database results, create a view for a search index and add an exposed filter for a fulltext search. There is a new setting in the block configuration to add db search results.

The search terms entered in the AI Search Block get used for a full text search and the database results appear under the streamed response.

I also have another module that puts a search box in the header and uses those terms to perform the searches.

There were more javascript changes than I wanted, getting the pager to work in the database results without a page refresh was challenging.

Many AI tools did help with my changes. I'm using this adaptation on two sites and like it.

โœจ Feature request
Status

Active

Version

1.0

Component

Code

Created by

๐Ÿ‡บ๐Ÿ‡ธUnited States keiserjb

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024