Linux 软件免费装

Loupe Search

开发者 PerS
更新时间 2026年8月12日 20:17
捐献地址: 去捐款
PHP版本: 8.3 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

search fast search SQLite full-text search typo-tolerant

下载

1.2.4 1.2.5 1.2.6

详情介绍:

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 Search Capabilities Administration Developer Features See the Search API documentation for REST endpoint details. Add-ons 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: These abilities are discoverable through the standard WordPress Abilities registry and require no additional 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. 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_db_path Controls where the search index is stored. Default: WP_CONTENT_DIR . '/loupe-search-db' loupe_search_post_types Modifies which post types are included in search. Default: the post types selected on the settings screen, falling back to ['post', 'page'] loupe_search_posts_per_page Controls search results per page. Default: WordPress "Blog pages show at most" setting loupe_search_index_protected Controls indexing of password-protected posts. Receives false for protected posts and true for everything else; return true to index them anyway. loupe_search_field_{$field_name} Modifies a core post field before indexing. Does not fire for custom fields. Example: The plugin uses loupe_search_field_post_content to strip HTML tags from content loupe_search_schema_{$post_type} Customizes the schema for a post type: which fields are indexed, their weight, and whether they are filterable or sortable. loupe_search_is_safely_sortable_{$post_type} Overrides whether a core post field may be used for sorting. loupe_search_is_safely_sortable_meta_{$post_type} Overrides whether a custom field may be used for sorting. For signatures, defaults, and usage examples, see the filter documentation.

安装:

  1. Quick Install
  2. Upload the plugin files to the /wp-content/plugins/loupe-search directory, or install the plugin through the WordPress plugins screen directly
  3. Activate through the 'Plugins' menu in WordPress
  4. Post-Installation
  5. Visit Settings > Loupe Search to configure
  6. Click 'Reindex' to build the initial search index (runs in batches to avoid timeouts)
  7. Updates
  8. Plugin updates are handled automatically by WordPress.org.

屏幕截图:

  • Fields tab for selecting which post types are indexed and configuring each field as indexable, filterable or sortable, with weight and sort direction.
  • Search Behavior tab with tokenization, prefix search and typo tolerance settings.
  • Contextual help tabs explaining field configuration options and search behavior settings.

常见问题:

How does it handle updates to posts?

The search index automatically updates when content is created, modified, or deleted.

Will it slow down my site?

No. Loupe Search uses a separate, optimized search index and doesn't impact your main database performance.

Can I customize what content is searchable?

Yes, using filters you can control exactly what content gets indexed and how it's searched.

Does it work with custom post types?

Yes, you can select which post types to include in the Settings page or via filters.

How do I reindex on large sites?

Use Settings > Loupe Search > Reindex (batched), or run via WP-CLI:

  • wp loupe-search reindex
  • wp loupe-search reindex --post-types=post,page --batch-size=1000

How do I use advanced search operators?

  • Hello World will search for posts containing Hello or World.
  • "Hello World" will search for posts containing the exact phrase Hello World.
  • Hello -World will search for posts containing Hello but not World.

What are the technical requirements?

  • PHP 8.3 or higher
  • SQLite 3.35+ (required by Loupe)
  • PHP extensions: pdo_sqlite, intl, mbstring
  • WordPress 6.9+

更新日志:

1.2.6 1.2.5 1.2.4 1.2.3 1.2.2 1.2.1 1.2.0 1.1.1 1.1.0 1.0.0 0.8.5 0.8.4 0.8.3 0.8.2 0.8.1 0.8.0 0.7.0 0.6.0 0.5.7 0.5.6 0.5.5 0.5.4 0.5.3 0.5.2 0.5.1 0.5.0 0.4.3 0.4.2 0.4.1 0.4.0 0.3.2 0.3.1 0.3.0 0.2.3 0.2.2 0.2.1 0.2.0 0.1.7 0.1.6 0.1.5 0.1.4 0.1.3 0.1.2 0.1.1 0.1.0 0.0.31 0.0.30 0.0.20 0.0.19 0.0.18 0.0.17 0.0.16 0.0.15 0.0.14 0.0.13 0.0.12 0.0.11 0.0.10 0.0.1 - 0.0.5 Development version, do not use in production.