{"id":412045,"date":"2026-11-26T09:13:52","date_gmt":"2026-11-26T09:13:52","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/ai-smart-search\/"},"modified":"2026-11-26T09:13:34","modified_gmt":"2026-11-26T09:13:34","slug":"cardoza-hybrid-search","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/cardoza-hybrid-search\/","author":8258137,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0.0","stable_tag":"1.0.0","tested":"7.1.5","requires":"7.0","requires_php":"8.2","requires_plugins":null,"header_name":"Cardoza Hybrid Search","header_author":"Vinoj Cardoza","header_description":"AI-powered hybrid search for WordPress: combines keyword (full-text) and semantic vector search using embeddings, with optional AI answers from an LLM. Runs on MySQL alone, so it works on shared hosting with no vector database.","last_updated":"2026-11-26 09:13:34","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"https:\/\/vinojcardoza.com\/","rating":0,"author_block_rating":0,"active_installs":0,"downloads":19,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0.0":{"tag":"1.0.0","author":"vinoj.cardoza","date":"2026-11-26 09:13:34","revision":3826130}},"upgrade_notice":{"1.0.0":"<p>Initial release.<\/p>"},"ratings":[],"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0"],"block_files":[],"assets_screenshots":[],"screenshots":{"1":"Search settings: site search takeover and the automatic AI answer.","2":"Embedding service settings.","3":"Chat model settings with the live prompt preview.","4":"Post types to index.","5":"Re-index progress and index statistics.","6":"An AI answer with linked sources above the search results."}},"plugin_section":[],"plugin_tags":[2353,250171,944,140844,229649],"plugin_category":[],"plugin_contributors":[78943],"plugin_business_model":[],"class_list":["post-412045","plugin","type-plugin","status-publish","hentry","plugin_tags-ai","plugin_tags-embeddings","plugin_tags-search","plugin_tags-semantic-search","plugin_tags-vector-search","plugin_contributors-vinojcardoza","plugin_committers-vinojcardoza"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/cardoza-hybrid-search.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>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\".<\/p>\n\n<p>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 \u2014 it works on ordinary shared hosting.<\/p>\n\n<h4>Features<\/h4>\n\n<ul>\n<li><strong>Hybrid search<\/strong> \u2014 MySQL FULLTEXT keyword search and vector similarity, combined with weighted Reciprocal Rank Fusion.<\/li>\n<li><strong>Replaces your theme's search<\/strong> \u2014 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.<\/li>\n<li><strong>AI answers (optional)<\/strong> \u2014 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 <code>[cardoza_hs_answer]<\/code> shortcode.<\/li>\n<li><strong>Bring your own provider<\/strong> \u2014 any OpenAI-compatible embeddings and chat completions API: OpenAI, OpenRouter, or a self-hosted Ollama or LM Studio server.<\/li>\n<li><strong>Choose what is indexed<\/strong> \u2014 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.<\/li>\n<li><strong>Automatic indexing<\/strong> \u2014 posts are indexed in the background when saved; unchanged content is skipped, and trashed, deleted, unpublished and password-protected posts are removed.<\/li>\n<li><strong>Re-index tool<\/strong> \u2014 re-index the whole site in small, resumable batches with a progress view and index statistics.<\/li>\n<li><strong>Fast and light<\/strong> \u2014 384-dimension vectors take 384 bytes each (about 11 MB for 30,000 chunks); results are cached for 5 minutes.<\/li>\n<li><strong>REST API<\/strong> \u2014 public <code>\/cardoza-hs\/v1\/search<\/code> and <code>\/cardoza-hs\/v1\/answer<\/code> endpoints with per-visitor rate limits.<\/li>\n<li><strong>Graceful fallback<\/strong> \u2014 if the embedding service is unreachable, search falls back to keyword results.<\/li>\n<\/ul>\n\n<h4>Requirements<\/h4>\n\n<ul>\n<li>MySQL 5.7+ or MariaDB 10.3+ with InnoDB.<\/li>\n<li>An OpenAI-compatible embeddings API reachable from your server that returns <strong>384-dimension<\/strong> vectors (for example <code>all-MiniLM-L6-v2<\/code>).<\/li>\n<li>For AI answers: an OpenAI-compatible chat completions API.<\/li>\n<\/ul>\n\n<h3>External services<\/h3>\n\n<p>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.<\/p>\n\n<h4>Embedding service<\/h4>\n\n<p>Used to turn content and search queries into vectors.<\/p>\n\n<ul>\n<li><strong>What is sent:<\/strong> 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.<\/li>\n<li><strong>When:<\/strong> when a post is indexed and on every search that isn't already cached.<\/li>\n<li><strong>Where:<\/strong> the embedding endpoint URL set on <strong>Hybrid Search \u2192 Settings<\/strong>.<\/li>\n<\/ul>\n\n<h4>Chat service (optional)<\/h4>\n\n<p>Used only if you configure it, to write AI answers.<\/p>\n\n<ul>\n<li><strong>What is sent:<\/strong> 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.<\/li>\n<li><strong>When:<\/strong> when an AI answer is displayed on a search results page or requested from the <code>\/answer<\/code> REST endpoint, unless the answer is cached.<\/li>\n<li><strong>Where:<\/strong> the chat endpoint URL set on <strong>Hybrid Search \u2192 Chat<\/strong>.<\/li>\n<\/ul>\n\n<p>If you use a hosted provider, see its terms and privacy policy. For example:<\/p>\n\n<ul>\n<li>OpenAI \u2014 <a href=\"https:\/\/openai.com\/policies\/terms-of-use\">Terms of use<\/a>, <a href=\"https:\/\/openai.com\/policies\/privacy-policy\">Privacy policy<\/a><\/li>\n<li>OpenRouter \u2014 <a href=\"https:\/\/openrouter.ai\/terms\">Terms of service<\/a>, <a href=\"https:\/\/openrouter.ai\/privacy\">Privacy policy<\/a><\/li>\n<\/ul>\n\n<p>A self-hosted server (such as Ollama or LM Studio) keeps all data on infrastructure you control.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the plugin to <code>\/wp-content\/plugins\/cardoza-hybrid-search<\/code>, or install it from <strong>Plugins \u2192 Add New<\/strong>.<\/li>\n<li>Activate it from the <strong>Plugins<\/strong> screen. This creates the index tables.<\/li>\n<li>Go to <strong>Hybrid Search \u2192 Settings<\/strong> and enter your embedding endpoint URL, API key (if required) and model name.<\/li>\n<li>Go to <strong>Hybrid Search \u2192 Re-Index<\/strong> and click <strong>Re-index all posts<\/strong> to index existing content. New and updated posts are then indexed automatically.<\/li>\n<li>Optional: configure a chat model on <strong>Hybrid Search \u2192 Chat<\/strong> and switch on <strong>Show an AI answer above search results<\/strong> on <strong>Hybrid Search \u2192 Search<\/strong>.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"do%20i%20need%20a%20vector%20database%20or%20special%20hosting%3F\"><h3>Do I need a vector database or special hosting?<\/h3><\/dt>\n<dd><p>No. Vectors are stored in two tables in your existing MySQL database and compared in PHP. It is designed for sites of up to about 10,000 posts on shared hosting.<\/p><\/dd>\n<dt id=\"which%20embedding%20providers%20work%3F\"><h3>Which embedding providers work?<\/h3><\/dt>\n<dd><p>Any service using the OpenAI-compatible embeddings format (<code>POST {\"model\": \"...\", \"input\": [...]}<\/code>), including OpenAI, OpenRouter, Ollama and LM Studio. The model must currently produce 384-dimension vectors.<\/p><\/dd>\n<dt id=\"does%20it%20send%20my%20content%20to%20a%20third%20party%3F\"><h3>Does it send my content to a third party?<\/h3><\/dt>\n<dd><p>Only to the endpoints you configure. See <strong>External services<\/strong> above. Using a self-hosted embedding and chat server keeps everything on your own infrastructure.<\/p><\/dd>\n<dt id=\"what%20happens%20if%20the%20embedding%20service%20is%20down%3F\"><h3>What happens if the embedding service is down?<\/h3><\/dt>\n<dd><p>Searches fall back to keyword-only results, and the error is written to the PHP error log. Posts that fail to index keep their previous index entry.<\/p><\/dd>\n<dt id=\"i%20changed%20the%20embedding%20model.%20do%20i%20need%20to%20re-index%3F\"><h3>I changed the embedding model. Do I need to re-index?<\/h3><\/dt>\n<dd><p>Yes. Vectors from different models can't be compared, so run <strong>Re-index all posts<\/strong> after changing the model.<\/p><\/dd>\n<dt id=\"new%20posts%20are%20not%20being%20indexed.\"><h3>New posts are not being indexed.<\/h3><\/dt>\n<dd><p>Indexing runs in the background through WP-Cron. If your site disables WP-Cron or it can't reach itself, set up a server cron job that requests <code>wp-cron.php<\/code>. The Re-Index page always works, because it runs batches while it is open.<\/p><\/dd>\n<dt id=\"how%20do%20i%20keep%20a%20post%20out%20of%20search%3F\"><h3>How do I keep a post out of search?<\/h3><\/dt>\n<dd><p>Open the post and switch on <strong>Exclude from AI search<\/strong> in the <strong>Cardoza Hybrid Search<\/strong> panel of the editor sidebar (or the meta box in the classic editor), then save. It is removed from the index immediately.<\/p><\/dd>\n<dt id=\"how%20do%20i%20add%20the%20ai%20answer%20to%20a%20block%20theme%3F\"><h3>How do I add the AI answer to a block theme?<\/h3><\/dt>\n<dd><p>Switch on the automatic answer on <strong>Hybrid Search \u2192 Search<\/strong>, or add a Shortcode block containing <code>[cardoza_hs_answer]<\/code> to your theme's Search Results template.<\/p><\/dd>\n<dt id=\"can%20i%20turn%20off%20the%20search%20takeover%20and%20use%20only%20the%20rest%20api%3F\"><h3>Can I turn off the search takeover and use only the REST API?<\/h3><\/dt>\n<dd><p>Yes. Switch off <strong>Use Cardoza Hybrid Search for site search<\/strong> on <strong>Hybrid Search \u2192 Search<\/strong>. The REST endpoints keep working: <code>GET \/wp-json\/cardoza-hs\/v1\/search?q=...<\/code> and <code>POST \/wp-json\/cardoza-hs\/v1\/answer<\/code>.<\/p><\/dd>\n<dt id=\"what%20is%20removed%20when%20i%20delete%20the%20plugin%3F\"><h3>What is removed when I delete the plugin?<\/h3><\/dt>\n<dd><p>Deleting the plugin from the Plugins screen drops its tables and removes its options, post meta, cached results and scheduled events. Deactivating it keeps everything.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Initial release.<\/li>\n<\/ul>","raw_excerpt":"Hybrid keyword + semantic search with optional AI answers. Uses only MySQL, so it runs on shared hosting \u2014 no vector database needed.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/412045","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=412045"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/vinojcardoza"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=412045"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=412045"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=412045"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=412045"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=412045"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=412045"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}