Why search bar finding words in categories?

Hi. When I type in search bar “boat” it shows me every listing with “boat” in title and other listings with no “boat” in title but with category name. How to remove category name search? That cause other items to show when You search “boat”

Yes, this is expected behaviour, category labels are indexed in search. Sometimes users forgot to mention this in the listing titles and indexing categories improves search, e.g. if the listing is a room for rent and someone sets the “Very cozy private space near the center” it can be still found if someone searches “room” + location.

Is any chance to switch off indexing categories in search?


Unfortunately, this version has no such feature, but thanks for your feedback, this feature is already on the roadmap, and we’ll try to implement it as soon as possible.


Sorry for the confusion; we have checked your question in more detail. Please try this PHP snippet (How to add custom code snippets - HivePress Help Center):

   $fields['categories']['_indexable'] = false;
  return $fields;

Thank You.
It is not working, could You please check it?

Please use this code snippet and re-save listings to update indexable information. Then please make tests

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.