Skip to content

Conversation

@shaejaz
Copy link
Contributor

@shaejaz shaejaz commented Nov 28, 2025

Summary
This PR updates the default search index tool's 'View All' button to support facet_filters coming as an input from Agent Studio (including the query which is already supported).

It would use either the refinementList or menu to add these filters. No other search params are supported.

@codesandbox-ci
Copy link

codesandbox-ci bot commented Nov 28, 2025

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 7911c63:

Sandbox Source
example-instantsearch-getting-started Configuration
example-react-instantsearch-getting-started Configuration
example-react-instantsearch-next-app-dir-example Configuration
example-react-instantsearch-next-routing-example Configuration
example-vue-instantsearch-getting-started Configuration

@shaejaz shaejaz marked this pull request as ready for review December 1, 2025 16:52
Comment on lines +13 to +20
if (input.facet_filters) {
let uiStateToUpdate: 'refinementList' | 'menu' | null = null;

if (indexUiState.refinementList) {
uiStateToUpdate = 'refinementList';
} else if (indexUiState.menu) {
uiStateToUpdate = 'menu';
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

have you considered something like index.getWidgetSearchParameters( currentUiState)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants