REST resource response incomplete when using exclusion list.

Created on 1 July 2025, about 1 month ago

Problem/Motivation

Exclusion list functionality was added recently. Search works fine with the exclusion list.
Looking at the REST response, however, it was noticed that some of the response is missing when the exclusion list results in no valid keywords.

Steps to reproduce

- Create a Vertex AI custom search page.
- Add a keyword to the exclusion list for the search page.
- Enable the REST Resource
- Using a client (Postman), make a request to the endpoint using the excluded keyword.
- The response is missing some information that is normally present.

Proposed resolution

Even if the keyword is excluded because of the exclusion list, the API should contain keys for all elements of the response. Here is what is missing:
- configuration (a subset of search page configuration associated with the search is in the response)
- tokens (an array of tokens and their replaced values)
- messages (an array of the messages that should appear as a result of the empty search).

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

1.8

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States tzura

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