Better Search for HivePress

Hey @everyone,

If you run a HivePress site, you may have noticed the keyword search only really looks at listing titles and descriptions. It quietly skips a couple of places that often hold the exact keywords a user is searching for: the names and descriptions of Marketplace pricing tiers your vendors write, plus your listing category names and descriptions.

I’ve been playing around with AI again and built a small (single-file, free) plugin to fix that. It extends the native HivePress search so a keyword also matches:

  • Pricing tier names and descriptions (for anyone on HivePress Marketplace with pricing tiers switched on)
  • Listing category names and descriptions
  • Sub-categories, so searching a broad category like “Grooming” also surfaces listings filed under its children like “Nail Clipping” or “Bathing”

Grab it here:

A few notes:

  1. Install and activate it alongside HivePress. The pricing tier matching also needs HivePress Marketplace with the “Allow sellers to set pricing tiers” option enabled in your HivePress settings.
  2. That’s it, nothing to configure. It hooks into the existing search form, so there are no template changes to make.
  3. On first activation it quietly indexes your existing listings in the background (spread across a few admin page loads), then keeps itself up to date whenever a listing is saved.
  4. It leaves the rest of your search alone and won’t throw up duplicate results when a listing sits in more than one category.

Warning: I built this with a lot of AI help and it’s working perfectly on my own site, but please test it on a staging copy before putting it live, just to be safe. If you hit any snags or have ideas, I’d love to hear them! :slight_smile:

I feel this could benefit the majority of HivePress-powered site owners, and think it could make another great addition to the core.

Cheers,
Chris :victory_hand:

2 Likes

Hi @ChrisB,

Thanks a ton for sharing it! It sounds great, and we will also consider expanding the search functionality to include more entities.

P.S. It seems like you had a productive weekend with HivePress :slightly_smiling_face:

1 Like

Hey @kseniia,

My pleasure! So glad you guys like the sound of it, too.

Haha, indeed - I guess I just like putting an overactive imagination to good use! :laughing:

Cheers,
Chris :victory_hand:

1 Like