Skip to content

Remove unused search indexing code [WHIT-1799]#10996

Merged
ryanb-gds merged 2 commits into
mainfrom
remove-unused-search-indexing-code
Jan 19, 2026
Merged

Remove unused search indexing code [WHIT-1799]#10996
ryanb-gds merged 2 commits into
mainfrom
remove-unused-search-indexing-code

Conversation

@ryanb-gds
Copy link
Copy Markdown
Contributor

@ryanb-gds ryanb-gds commented Jan 14, 2026

Follow up to WHIT-1799

Removes indexing code for both organisations and topical event about pages. The former have been migrated to the 'govuk' index, so are now being indexed via Publishing API, and the latter were not being indexed in the first place.

Organisation indexing is now done via Publishing API.
@ryanb-gds ryanb-gds force-pushed the remove-unused-search-indexing-code branch from 3fbc818 to b55fc1a Compare January 14, 2026 10:35
These pages were not being indexed by Whitehall because the `can_index_in_search?` method was evaluating to false. This was due to topical event about pages being absent from the search API presenter's allowlist.

Given nobody seems to have missed them, it seems reasonable to maintain the status quo. We may choose to start indexing them via Publishing API in future, but we don't want to reintroduce the behaviour to Whitehall.
@ryanb-gds ryanb-gds force-pushed the remove-unused-search-indexing-code branch from b55fc1a to 08a88ed Compare January 14, 2026 10:39
Copy link
Copy Markdown
Contributor

@ChrisBAshton ChrisBAshton left a comment

Choose a reason for hiding this comment

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

Great stuff ⭐

@ChrisBAshton ChrisBAshton changed the title Remove unused search indexing code Remove unused search indexing code [WHIT-1799] Jan 14, 2026
@ryanb-gds ryanb-gds merged commit c4d7723 into main Jan 19, 2026
25 checks passed
@ryanb-gds ryanb-gds deleted the remove-unused-search-indexing-code branch January 19, 2026 09:15
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.

2 participants