Search by machine should only be in the machine category.
Search for apartments only in the category of apartments.
But it turns out that if we use search on the main page in all categories, then from below come out all the attributes created for different categories, how it can be fixed, remove them. What would they have remained only in the categories that you chose.
Or as they are in the spoiler