Skip to content

[5.x] Don't show products without categories#1230

Open
Jade-GG wants to merge 2 commits intomasterfrom
feature/dont-check-empty-category-ids
Open

[5.x] Don't show products without categories#1230
Jade-GG wants to merge 2 commits intomasterfrom
feature/dont-check-empty-category-ids

Conversation

@Jade-GG
Copy link
Collaborator

@Jade-GG Jade-GG commented Mar 16, 2026

ref: BORDEX-1361

I've made sure to double check. The _exists_ check didn't do anything except directly cause products without categories to be shown in every single category. We only add this filter when categoryId is set, so you don't end up with a (category_ids:) error.

This also doesn't go wrong on search queries on a gibberish search within a category page (even if it did query an invalid field, which it won't because the query gets overwritten) nor does it go wrong on either ElasticSearch or OpenSearch.

From all the context I could find and test, there is no reason why this _exists_ should be here.

@Jade-GG Jade-GG marked this pull request as ready for review March 16, 2026 13:08
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.

1 participant