[WordPress] 外掛分享: Loupe Search

首頁 › 外掛目錄 › Loupe Search
WordPress 外掛 Loupe Search 的封面圖片
全新外掛
安裝啟用
★★★★★
5/5 分(1 則評價)
剛更新
最後更新
100%
問題解決
WordPress 7.0+ PHP 8.3+ v1.7.4 上架:2026-08-03

內容簡介

Loupe Search 是一款提升 WordPress 搜尋功能的外掛,透過自建索引來加速搜尋,支援錯字容忍、短語匹配和自訂文章類型,讓使用者能夠更精確地找到所需內容。

【主要功能】
• 自建索引取代 WordPress 預設搜尋引擎
• 錯字容忍搜尋,能找到拼寫錯誤的結果
• 短語匹配與排除運算子支援
• 實時索引同步,保持資料更新
• 簡單的設定介面與一鍵重建索引
• 支援多語言與自訂文章類型整合

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.7.4) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Loupe Search」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

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.

延伸相關外掛

文章
Filter
Mastodon