When a customer views products from both women and men categories, algorithms will raise products from the most viewed category to the top. For example, if the user has viewed 6 products from the women category and 8 from the men category, products for men will appear higher in the search results.
Also, it's important to know that merchandising rules have a higher priority than personalization. So, if you've set up a certain product to be always on top of the search results
using merchandising, personalized search results will appear after that product.