For ex.
I have 3 categories men, women, other..
exclude category name:- women
product-test:- assign this product to men , women and ,other.. categories
when searching ” product-test “, this product will be shown only men and others on the search list.
excluding from the women category..