跳到内容

Cardoza Hybrid Search

v1.0.0

Vinoj Cardoza · 2026年11月26日 上架

Hybrid keyword + semantic search with optional AI answers. Uses only MySQL, so it runs on shared hosting — no vector database needed.

正在使用
10 以下
评分
暂无
累计下载
0
最近更新
2026年11月26日
需要 WordPress 7.0+已测试到 7.1.5PHP 8.2+

贡献者

Cardoza Hybrid Search makes your site search understand meaning, not just matching words. A visitor searching for “how do I speed up my site” finds your post titled “Caching and performance tips” even though it never uses the word “speed”.

Post content is split into chunks, turned into vector embeddings by an embedding service you choose, and stored in your existing MySQL database as compact INT8 vectors next to a FULLTEXT keyword index. Every search combines keyword and semantic ranking. No vector database, no extra server software — it works on ordinary shared hosting.

Features

  • Hybrid search — MySQL FULLTEXT keyword search and vector similarity, combined with weighted Reciprocal Rank Fusion.
  • Replaces your theme’s search — the search box and results page keep working with your theme’s templates and pagination; excerpts show the passage that matched. Can be switched off.
  • AI answers (optional) — a chat model of your choice writes a short answer from the top results, with numbered citations linked to the source posts. Add it automatically above search results or with the [cardoza_hs_answer] shortcode.
  • Bring your own provider — any OpenAI-compatible embeddings and chat completions API: OpenAI, OpenRouter, or a self-hosted Ollama or LM Studio server.
  • Choose what is indexed — pick the post types (posts and pages by default, plus products, events or any public post type), and exclude single posts from the editor sidebar.
  • Automatic indexing — posts are indexed in the background when saved; unchanged content is skipped, and trashed, deleted, unpublished and password-protected posts are removed.
  • Re-index tool — re-index the whole site in small, resumable batches with a progress view and index statistics.
  • Fast and light — 384-dimension vectors take 384 bytes each (about 11 MB for 30,000 chunks); results are cached for 5 minutes.
  • REST API — public /cardoza-hs/v1/search and /cardoza-hs/v1/answer endpoints with per-visitor rate limits.
  • Graceful fallback — if the embedding service is unreachable, search falls back to keyword results.

Requirements

  • MySQL 5.7+ or MariaDB 10.3+ with InnoDB.
  • An OpenAI-compatible embeddings API reachable from your server that returns 384-dimension vectors (for example all-MiniLM-L6-v2).
  • For AI answers: an OpenAI-compatible chat completions API.

External services

This plugin does not contact any service until you configure one. It connects only to the endpoint URLs you enter in its settings. You choose the provider, and that provider’s terms of service and privacy policy apply.

Embedding service

Used to turn content and search queries into vectors.

  • What is sent: the title and text content of published posts of the enabled post types (when they are saved or re-indexed), and the search terms visitors enter (when they search). The model name and, if you entered one, your API key are sent with each request.
  • When: when a post is indexed and on every search that isn’t already cached.
  • Where: the embedding endpoint URL set on Hybrid Search Settings.

Chat service (optional)

Used only if you configure it, to write AI answers.

  • What is sent: the visitor’s search terms and the title, URL and matching text of the top five search results, inside the prompt you configure. The model name and, if set, your API key are sent with each request.
  • When: when an AI answer is displayed on a search results page or requested from the /answer REST endpoint, unless the answer is cached.
  • Where: the chat endpoint URL set on Hybrid Search Chat.

If you use a hosted provider, see its terms and privacy policy. For example:

A self-hosted server (such as Ollama or LM Studio) keeps all data on infrastructure you control.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums