Skip to content

WordPress search plugins — Relevanssi vs SearchWP for real sites

WordPress core search misses on content-heavy sites. Relevanssi and SearchWP each solve it differently. Operational picks, indexing cost, and the upgrade path.

WordPress core search uses a basic MySQL LIKE query against post title and content. On a small blog with a hundred posts, it works fine. On a content-heavy WordPress site — documentation, news, e-commerce — it misses anything with stemming, weights every match identically, and ignores taxonomy and custom fields. The two operational picks are Relevanssi and SearchWP. They solve the same problem with different trade-offs.

What’s happening

WordPress’s WP_Query with s=keyword runs roughly: SELECT * FROM wp_posts WHERE (post_title LIKE '%keyword%' OR post_content LIKE '%keyword%') AND post_status='publish'. No stemming, no relevance scoring, no fuzzy matching, no taxonomy or meta search. For a WordPress site where search powers product discovery or knowledge base navigation, this is inadequate. Relevanssi and SearchWP each replace WP_Query for search queries with their own indexed search backend — Relevanssi builds an inverted index in MySQL, SearchWP builds its own custom index table and supports external engines (Algolia, Elasticsearch) in higher tiers.

How to verify

Test core WordPress search:

curl -s "https://example.com/?s=specific-term" | grep -c 'search-result'
wp post list --s='specific-term' --field=ID | wc -l

If the count is wrong (missing posts you know contain the term), or if synonyms and stemmed variants aren’t found, you need a real search plugin. From WP-CLI:

wp plugin list --status=active --field=name | grep -iE 'relevanssi|searchwp|elasticpress|jetpack'
wp db query "SHOW TABLES LIKE 'wp_relevanssi%'"
wp db query "SHOW TABLES LIKE 'wp_swp%'"

The fix

  1. Relevanssi — pick for content sites. Relevanssi is free in the basic tier with the paid tier unlocking more weights and custom field indexing. It builds an inverted index in wp_relevanssi tables and replaces WordPress search transparently. Best for: blogs, knowledge bases, documentation, multilingual content sites. Stack Harbor’s enterprise WordPress hosting KB uses Relevanssi.

  2. SearchWP — pick for e-commerce and complex content models. SearchWP is paid-only but has stronger custom field, taxonomy, and ACF integration out of the box. The “Engines” feature lets you have separate search behaviors for different content types. Best for: WooCommerce stores, sites with heavy ACF schemas, sites with multiple custom post types.

  3. Indexing cost. Both plugins build their index on first activation, which is expensive on large sites. Relevanssi: wp relevanssi index --debug. SearchWP: dashboard > Indexer > rebuild. Run this off-peak on production. On a WordPress site with 50k+ posts, expect 1-2 hours of indexing.

  4. Index update on save. Both plugins hook into save_post and update the index incrementally as content changes. Bulk operations (CSV imports, WP-CLI batch updates) bypass these hooks, leaving the index stale. After any bulk operation, rebuild: wp relevanssi index or the SearchWP equivalent.

  5. Excluded post types and statuses. By default both plugins index published posts and pages. To include WooCommerce products, knowledge base CPTs, or custom content: Relevanssi > Settings > Indexing tab > add post types. SearchWP > Engines > add post types.

  6. Search relevance tuning. Both let you weight where matches come from — title matches > content matches > tag matches > meta field matches. The defaults are reasonable. Tune only if users complain about specific bad results. Don’t tune for theoretical edge cases.

  7. Multilingual sites. Both Relevanssi and SearchWP integrate with WPML and Polylang. The index respects the current language context. Verify by searching in English and French separately on a multilingual WordPress site — results should be language-specific.

  8. External search engines. SearchWP Pro integrates with Algolia and Elasticsearch via add-ons. This is the right path when WordPress search needs sub-100ms response time at scale or when indexing cost in MySQL becomes prohibitive (typically 500k+ posts). For most WordPress sites, MySQL-backed indexes are sufficient.

  9. Search analytics. Both plugins log search queries. The “no results” report is the highest-value list — it tells you what users want that you don’t have. Stack Harbor’s enterprise WordPress hosting baseline includes monthly review of no-results queries.

  10. Performance impact. The plugins add hooks on every search request. For low-search-volume sites, impact is negligible. For sites where search is the primary navigation (KB, e-commerce), make sure search results are cacheable at the edge.

Stack Harbor configures WordPress search plugins as part of enterprise WordPress hosting operations. Start the conversation when your WordPress search returns “no results” for queries you know match content.