Skip to content
Sign in

Loupe Search

A search enhancement plugin for WordPress that delivers fast, accurate, and typo-tolerant results.

Not scanned yet WordPress plugin

Install in

No install steps yet

Follow the steps on the source page.

Loupe Search improves WordPress core search by maintaining its own index for fast lookups, supporting typo tolerance, phrase matching, basic exclusion operators, and per–post-type customization.

Core Features

  • 🚀 Index-backed search engine replacing the WordPress default
  • ⚡ Results served from a dedicated index, not the posts table
  • 🔄 Real-time index synchronization
  • 🌐 Support for multiple languages
  • 📦 Full custom post type integration
  • 📈 Integrated search performance metrics
  • ✅ Works with the WordPress default themes

Search Capabilities

  • 🔍 Typo-tolerant searching – find results even with misspellings
  • 💬 Phrase matching with quotation marks: "exact phrase"
  • ➖ Exclusion operator support (e.g., term -excluded)
  • 🔀 Multi-word search: term1 term2 finds content with both terms, or with either term when nothing contains both
  • 📖 Pagination support
  • Stemming support
  • Stop words recognition
  • Highlighting and cropped snippets on the default search results (opt-in) and via the REST API

Administration

  • Simple settings interface
  • Post type selection
  • Field configuration options
  • One-click reindexing
  • Exclude individual posts from search (post list column, Quick Edit, bulk actions, editor sidebar)
  • Opt-in Search insights: top searches and searches without results, stored as privacy-friendly daily totals (no IP, user or browser data). Report under Dashboard Search insights with fixed or custom date ranges, a Dashboard widget and CSV export
  • Processing time monitoring

Developer Features

  • 🛠️ Extensive filter system for customization
  • 📊 Performance monitoring and diagnostics
  • 🔧 Customizable indexing
  • Field weighting control

See the Search API documentation for REST endpoint details.

Add-ons

Install, activate and update Loupe Search Block, Loupe Semantic Search and Loupe Search Multilingual from one screen with Loupe Search Add-ons. Their updates then show up in Dashboard Updates like any other plugin.

  • 🔍 Loupe Search Block — A search block with live results as you type, a post type filter, category and tag facets, sorting and highlighted snippets. Falls back to a plain search form without JavaScript.
  • 🌐 Loupe Cross-Site Search — Search across every site in a WordPress multisite network from a single hub. Mirrors each site’s public content into one combined index and ships a ready-to-use Cross-Site Search block with site and post-type facets, sorting, and highlighted snippets. Requires WordPress multisite 7.0+ and Loupe Search active on the network.
  • 🧠 Loupe Semantic Search — Adds semantic retrieval to Loupe Search. Hybrid (keyword + semantic) search finds posts by meaning as well as by words, in the front-end search, the REST API and Loupe Search Block. Abilities return RAG passages with sources for AI agents. Embeddings come from a provider you connect through WordPress 7 AI Connectors. Requires Loupe Search 1.5.0+ and the AI plugin 1.5.0+.
  • 🗣️ Loupe Search Multilingual — One index per language for sites translated with Polylang or WPML. Each language gets its own stemming and stop words, and visitors only find posts in the current language. Requires Loupe Search 1.6.0+.
  • 📁 VMFA Search — Supercharges the native Media Library search field with fast, typo-tolerant search across title, filename, alt text, caption, and description. Requires the Virtual Media Folders plugin.

AI Agent Integration (WordPress Abilities API)

Loupe Search registers two abilities via the WordPress Abilities API (WordPress 6.9+) so AI agents and automation tools can discover and use search functionality natively:

  • loupe-search/search — Typo-tolerant full-text search across indexed post types. Supports phrase matching, exclusion, and OR operators. Publicly accessible.
  • loupe-search/get-post — Retrieve a single published post by ID. Publicly accessible.

These abilities are discoverable through the standard WordPress Abilities registry and require no additional Loupe Search configuration. As of 1.2.0 the ability namespace is loupe-search; the legacy wp-loupe/search and wp-loupe/get-post abilities still work but are deprecated aliases.

For an AI agent to use these abilities, install and activate the MCP Adapter plugin. It exposes registered abilities to agents over the Model Context Protocol (MCP).

Upgrading from the experimental MCP server? The MCP server, token service, and WP-CLI token commands were removed in 0.8.5. Use the Abilities API endpoints described above instead; no configuration migration is required.

Filters

These filters allow developers to customize Loupe Search’s behavior. As of 1.1.0 they use the loupe_search_* prefix; the old wp_loupe_* names still work but are deprecated and will be removed in a future major release.

  • loupe_search_post_types: Choose which post types are indexed.
  • loupe_search_index_protected: Index password-protected posts.
  • loupe_search_indexable_post_statuses: Index extra publicly viewable statuses.
  • loupe_search_is_indexable: Keep individual posts out of the index.
  • loupe_search_db_path: Move the index directory.
  • loupe_search_language: Override the stemming language.
  • loupe_search_stop_words: Change the common words ignored in searches.
  • loupe_search_partitions, loupe_search_post_partition, loupe_search_partition_language, loupe_search_query_partitions, loupe_search_partition_label: Split a post type’s index into partitions, for example one per language.
  • loupe_search_field_{$field_name}: Clean a core post field before indexing.
  • loupe_search_schema_{$post_type}: Add/remove fields, set weights and sorting.
  • loupe_search_is_safely_sortable_{$post_type}: Force a core field to be sortable.
  • loupe_search_is_safely_sortable_meta_{$post_type}: Correct meta-field sortability detection.
  • loupe_search_posts_per_page: Change results per page.
  • loupe_search_max_cacheable_query_length: Change which queries are written to the result cache.
  • loupe_search_order_results: Reorder or regroup results merged across post types.
  • loupe_search_advanced_hits: Rerank or add hits in REST POST /search before pagination.
  • loupe_search_highlight: Turn match highlighting on for the default search.
  • loupe_search_highlight_fields: Choose which fields are highlighted.
  • loupe_search_highlight_start_tag / loupe_search_highlight_end_tag: Change the tags wrapped around matches.
  • loupe_search_highlight_crop_fields: Choose which fields become cropped snippets.
  • loupe_search_highlight_crop_length: Change snippet length (in words).
  • loupe_search_highlight_crop_marker: Change the ellipsis on cropped snippets.
  • loupe_search_insights_should_count: Decide whether a visitor search is counted by Search insights.
  • loupe_search_settings_tabs: Add a tab to Settings Loupe Search.

Action: loupe_search_searched fires after a visitor search (first results page, or REST with countSearch: true), with the query, total hits and source. It fires before the Search insights checks, so searches rejected by loupe_search_insights_should_count still trigger it.

For signatures, defaults, and usage examples, see the filter documentation.

Written by Joobi from the project's own listing. See the source page

bbPressfull text searchsearchsqlitetypo-tolerant
29 Nov 2026
Version 1.7.4 released. Not scanned yet.

1.7.4

  • Added: Contextual help on Dashboard Search insights (Overview, Periods, Reading the lists, Export, Privacy) with a link to the Search insights settings.
  • Added: WordPress.org screenshot 7 showing the Search insights contextual help.

1.7.3

  • Fixed: The From and To dates on the Search insights report use the date format from Settings General instead of the browser’s locale, with a date picker that follows the site’s language and start of week. Typed dates are checked before the report is applied, so an invalid or future date shows a message instead of silently using the previous date.
  • Changed: Updated WordPress.org screenshot 4 (Search insights settings tab) and added screenshot 6 (Search insights report).

1.7.2

  • Changed: Search insights “Searches without results” lists only queries that found nothing in the whole period. A query that found results some of the time is listed only under Top searches, so the two lists no longer overlap. Applies to the report page and the Dashboard widget.
  • Changed: The “without results” total in the Search insights summary counts only searches for those never-found queries, so it matches the list.

1.7.1

  • Changed: Search insights follows WordPress admin design conventions: right-aligned number columns, “Export this period (CSV)” next to the period heading, a screen-reader heading for the period links, “Custom” shown as the current period, a stylesheet instead of inline styles, and more spacing in the Dashboard widget.
  • Changed: The settings save button is now labelled “Save Changes”.
  • Fixed: “Delete all data permanently” now requires a confirmation checkbox, which is also checked on the server. The button is styled as a destructive action.

1.7.0

  • Added: The Search insights report moved to Dashboard Search insights, with a Dashboard widget for the last 7 days. The settings tab links to it.
  • Added: Search insights periods: this month, last week, last month, last quarter and a custom date range, next to the last 7, 30 and 90 days.
  • Added: Search insights Export CSV: daily totals (day, query, searches, zero results, results sum) for the selected period. Queries that a spreadsheet would read as a formula are exported as text.
  • Changed: Top searches no longer list queries that never returned a result; they appear only under searches without results.
  • Changed: Docs list the Loupe Search Multilingual add-on and the Loupe Search Add-ons manager.
  • Fixed: The Search column in post lists has a fixed width instead of taking up spare space.

1.6.0

  • Added: Index partitions. Add-ons can split a post type’s index into several indexes, for example one per language, each with its own stemming and stop words. New filters loupe_search_partitions, loupe_search_post_partition, loupe_search_partition_language, loupe_search_query_partitions and loupe_search_partition_label. Without them nothing changes.
  • Added: The Dashboard’s index health table shows a row per partition.
  • Changed: The internal loupe_search_internal_document_added action passes the partition as a third argument.

1.5.6

  • Fixed: Field weights on the Fields tab no longer show as 1.0 (or 1,0 in some browser locales) next to saved weights shown as 1, and a saved weight of 0 is no longer replaced by the default.
  • Fixed: The settings Help overview now lists the Search insights tab.
  • Changed: readme.txt lists every public filter and the loupe_search_searched action; the full reference is in docs/filters.md.
  • Changed: The FAQ now explains that multi-word searches match all words, falling back to any word.
  • Changed: Updated WordPress.org screenshots, including the Search insights tab.

1.5.5

  • Added: Common words (stop words) such as “the”, “er” or “på” are ignored in searches, so they no longer make most posts match. Lists for 12 languages are bundled; change them with the loupe_search_stop_words filter. Indexes are rebuilt automatically after updating.
  • Changed: Multi-word searches now return posts that contain every word. If no post contains every word, posts that contain any of them are returned.

1.5.4

  • Fixed: Search terms are now stemmed like indexed content, so inflected forms find each other (for example “plager” also finds “plagene”). Exact matches still rank first.

1.5.3

  • Fixed: REST search and the search block no longer fail with “Rebuild required” after updating to 1.5.2; the old index is used until it has been rebuilt.
  • Added: Out-of-date indexes are rebuilt automatically in the background after a plugin update.

1.5.2

  • Changed: Updated the bundled Loupe search library to 1.1.7.

1.5.1

  • Fixed: Stemming now works for Norwegian (nb_NO, nn_NO) and other locales whose code the stemmer did not recognise, and three-letter locales no longer get the wrong language (e.g. Filipino was stemmed as Finnish). Reindex after updating.
  • Added: loupe_search_language filter to override the stemming language.
  • Changed: Docs list the Loupe Semantic Search add-on.

1.5.0

  • Changed: Requires WordPress 7.0 or later.
  • Added: loupe_search_advanced_hits filter, so add-ons can rerank or add hits in REST POST /search before pagination. Its context includes a matches_filter callback that keeps added hits within the request’s filters.
  • Added: loupe_search_order_results now also receives the searched post types and the applied field sort.
  • Added: loupe_search_settings_tabs filter, so add-ons can add a tab to Settings Loupe Search.
  • Added: loupe_search_is_post_indexable() function, telling add-ons whether Loupe Search indexes a post.
  • Fixed: REST search skipped post types registered on init, such as bbPress forums, topics and replies and custom post types from CPT UI or a theme.

1.4.0

  • Added: Exclude individual posts from search, from the post list (Search column, Quick Edit, bulk actions) or the editor sidebar. The index updates immediately. This hides posts from search results only; it is not access control. Fixes #69.
  • Added: The Dashboard shows the number of excluded posts per post type, and the index-status REST response includes excluded.
  • Added: Search insights (opt-in, off by default): top searches, top searches without results and the average result count for the last 7, 30 or 90 days. Stores daily totals per query only — no IP address, user, user agent or time of day. 90-day retention by default, purged daily. Fixes #70.
  • Added: REST countSearch parameter on GET and POST /search.
  • Added: Public REST GET /search-fields route listing the searchable post types and the fields each one can filter, facet and sort on.
  • Added: loupe_search_searched action and loupe_search_insights_should_count filter.
  • Fixed: REST POST /search ignored attributesToHighlight and attributesToCrop, so _formatted was never returned.
  • Fixed: REST search _formatted values are filtered to inline highlight tags, so stored markup can’t reach the page as HTML.
  • Fixed: The “reindex needed” admin notice now ignores excluded posts.

1.3.8

  • Added: bbPress support. Forums, topics and replies are indexed only when their forum and all parent forums are public; changing a forum’s visibility or moving a forum or topic re-checks the affected sub-forums, topics and replies.
  • Added: loupe_search_is_indexable filter to keep individual posts out of the index.
  • Added: loupe_search_indexable_post_statuses filter to index extra publicly viewable statuses per post type.
  • Fixed: WP-CLI crashed on sites where Loupe Search is active because wp loupe-search was registered under the old namespace.
  • Fixed: A full reindex now applies the same rules as saving a post, so password-protected posts are no longer indexed by a reindex.
  • Changed: Updated npm dependencies.

1.3.7

  • Added: Admin notice prompting a reindex when an index is missing or out of date (e.g. after upgrading or on multisite), with a link to the reindex dashboard.
  • Added: The Dashboard “Index health” now shows the indexed document count and flags an empty index as needing a reindex.
  • Security: The index directory is now protected from direct web access with .htaccess/web.config/index.php files, so the SQLite index (which can contain private post data) is no longer downloadable. Nginx users must deny the directory in their server config. Fixes #62.
  • Fixed: Search now uses the site locale for stemming and stopwords instead of always English. Fixes #57.
  • Fixed: Sortable fields are no longer forced as sort criteria on every search; regular searches keep relevance ordering. Fixes #64.
  • Fixed: Typo tolerance now defaults to enabled when settings were never saved, matching the settings UI. Fixes #58.
  • Fixed: Permanently deleting a post (including via wp_delete_post()) now removes it from the index. Fixes #59.
  • Fixed: Multisite installs now use a per-site index directory so networked sites no longer overwrite each other’s index. Fixes #56.
  • Fixed: The SQLite availability check now runs before the plugin wires up its SQLite-backed components. Fixes #63.

1.3.6

  • Fixed: Match highlighting no longer strips paragraph/layout markup in block themes like Twenty Twenty-Five; matches are highlighted in place within the rendered content. Fixes #54.
  • Fixed: A custom highlight tag that reuses a common element (e.g. <span class="hit">) no longer skips ordinary elements of the same name.

1.3.5

  • Added: New loupe_search_order_results filter to customize how results are ordered or grouped across post types.
  • Fixed: The indexer now runs during WP-Cron, so scheduled posts and cron-driven imports are indexed automatically. Fixes #52.
  • Fixed: Search ordering now respects field weights, and results are merged across post types by relevance instead of grouping one type above another. Fixes #51.
  • Fixed: Match highlighting now works in block themes that render full content via core/post-content, such as Twenty Twenty-Five. Fixes #50.

1.3.4

  • Fixed: Loupe Search is now fully self-contained — its bundled Composer libraries are namespace-scoped so they can no longer clash with different versions of the same libraries loaded by the active theme or another plugin. This resolves fatal errors that appeared with several themes whose functions.php loads its own bundled libraries; library-free themes such as Twenty Twenty-Five were never affected.

1.3.3

  • Fixed: Categories and tags are now indexed when a post is created or updated — the indexer now runs on wp_after_insert_post, which fires after a post’s terms are saved. Previously you had to reindex manually. Fixes #41. Props @Zodiac1978.
  • Fixed: Renaming or deleting a category/tag now reindexes the posts attached to that term, so search finds them under the new name immediately. Fixes #43. Props @Zodiac1978.
  • Fixed: Plugin URI header now points to the GitHub repository instead of a WordPress.org URL. Fixes #38. Props @Zodiac1978.
  • Fixed: Several i18n string issues — clearer deprecated-alias descriptions, a removed trailing space and a needless translatable string, and a missing closing quote in the Prefix Search help text. Fixes #36. Props @Zodiac1978.

1.3.2

  • Added: Opt-in match highlighting on the default WordPress search results. Toggle it with the new “Highlight Matches” checkbox under Settings Loupe Search Search Behavior (off by default), or override in code with add_filter( 'loupe_search_highlight', '__return_true' ). Titles get matched terms wrapped in <mark> and excerpts become highlighted, cropped snippets. Tune it with the loupe_search_highlight_fields, loupe_search_highlight_start_tag/_end_tag, loupe_search_highlight_crop_fields, loupe_search_highlight_crop_length, and loupe_search_highlight_crop_marker filters. Highlight tags are sanitized to a safe inline allowlist. Works in classic and block themes (block-theme excerpts are re-highlighted after the core/post-excerpt block strips tags). See the Filters documentation for details.
  • Fixed: Fatal error when the old “WP Loupe” plugin was active at the same time as Loupe Search — both declared the same classes, so activating one crashed with “Cannot declare class … already in use”. Loupe Search now uses its own PHP namespace and, when WP Loupe is still active, shows a notice asking you to deactivate it instead of crashing.

1.3.1

  • Fixed: Typo tolerance settings (alphabet size, index length, first-character double counting, prefix search, and thresholds) were silently ignored because Loupe’s immutable TypoTolerance builder methods return a new instance that was discarded. Props @Zodiac1978.
  • Fixed: Admin JavaScript strings were not translatable because wp_set_script_translations() was never called for the loupe-search-admin script. Props @Zodiac1978.
  • Fixed: Corrected the broken link to the “Efficient Similarity Search in Very Large String Sets” research paper in the typo tolerance settings description. Props @Zodiac1978.

1.3.0

  • Security: Hardened the Abilities API integration. The loupe-search/get-post ability no longer returns the content of password-protected posts, and password-protected posts can no longer surface through the loupe-search/search ability or the public REST search.
  • Changed: The loupe-search/search and loupe-search/get-post abilities and the REST search endpoints now share one public-visibility gate (published, public post type, not password protected).
  • Changed: The loupe-search/get-post ability now returns proper HTTP status codes (400 for an invalid id, 404 when not viewable).
  • Fixed: A post’s index document is now purged when it becomes unpublished or password protected, instead of leaving a stale copy.
  • Added: A search benchmark harness.

1.2.6

  • Fixed: Reindexing failed with a “Cannot open for reading gzip” error because the release package omitted loupe/matcher’s dictionary.gz, which the decompounder rebuilds its search index from.

1.2.5

  • Changed: The plugin description now summarises what the search does, and Plugin URI points at the WordPress.org listing.
  • Changed: Tested up to WordPress 7.1.
  • Fixed: The settings help panel still called the plugin “WP Loupe”.

1.2.4

  • Changed: The minimum PHP version is now 8.3. The plugin’s dependencies already required PHP 8.2/8.3, so the previously advertised 8.1 requirement was not accurate.
  • Security: The public search REST route and search ability now scope the query itself to public post types, so hit totals and facet counts can no longer reveal indexed non-public content.
  • Changed: The plugin’s options moved off the wp_ prefix, which is reserved for WordPress core. Existing settings are migrated automatically on first load.
  • Changed: The settings screen moved to options-general.php?page=loupe-search.
  • Removed: The 12-hour cache in front of the public search route. Caching every query from an unauthenticated route could grow the options table without bound.
  • Removed: Third-party command line entry points and build config from the release package.
  • Removed: The unused language-detection n-gram databases from the release package, which drops it from 197 MB to 25 MB.
  • Fixed: The indexer stripped tags using a deprecated filter name.
  • Added: The loupe_search_max_cacheable_query_length filter (default 128) bounds which queries are written to the result cache.

1.2.3

  • Changed: Updated the plugin screenshots to reflect the current settings UI.
  • Changed: Corrected the screenshot descriptions to match the current Search Behavior tab.

1.2.2

  • Security: Public REST search endpoints and the search abilities now only return results from public post types.
  • Security: Field settings now sanitize the nested post-type and field-name keys.
  • Changed: Updated the bundled Loupe search engine to 1.0.1 (compound-word decomposition, improved excerpt cropping).
  • Removed: The bundled plugin update checker library; updates are served by WordPress.org.
  • Fixed: Admin help-tab styles are now enqueued instead of printed in an inline style tag.
  • Fixed: Removed a broken documentation link and excluded development/test folders from the release package.

1.2.1

  • Fixed: The loupe_search_post_types filter now applies everywhere. It was only applied when resolving the front-end search scope, so the indexer, the REST API and the WordPress Abilities kept using the raw settings value. The settings screen still shows the stored option.
  • Fixed: Uninstalling now deletes the plugin’s options and cached search results, on every site of a multisite network. Previously only the index directories were removed.
  • Fixed: Removed a bootstrap short-circuit that skipped plugin initialization on REST requests whose path did not start with /wp-json/wp-loupe.
  • Fixed: The Composer package is now soderlind/loupe-search, and its PSR-4 prefix is no longer over-escaped.
  • I18n: Regenerated loupe-search.pot. It now includes the ability and highlighting strings added in 1.2.0, and the plugin URI no longer points at the old repository.
  • Removed: The unused WP_Loupe_Migration class and WP_Loupe_Utils::is_post_indexable().
  • Documentation: Added an architecture guide and a docs index, and corrected the filter, rename and migration guides.

1.2.0

  • Added: REST search now supports opt-in highlighting and cropping. Send attributesToHighlight and/or attributesToCrop (field names or ["*"]) to the POST
4 Aug 2026Listed on Joobi from WordPress.org.

Follow this listing's changes (Atom feed)