Introducing Hybrid Search on CanvasXpress.org: Keyword Precision Meets AI Understanding
If you've ever landed on CanvasXpress.org looking for a specific chart option — say, how to change the color of a dendrogram, or which parameter controls the background grid lines — you know that documentation sites live or die by their search box. A generic search box that just matches literal words often misses the page you actually need, especially when your query uses different words than the docs do.
We've rebuilt search on CanvasXpress.org from the ground up. It's self-hosted, fast, and — most importantly — it understands intent, not just keywords. Here's what's new and how to get the most out of it.
Why rebuild search at all?
The old search box on the site was a third-party widget bolted onto the page. It worked the way generic web search widgets work: it matched the literal words you typed against an external index, with no awareness of CanvasXpress's own structure — its hundreds of configuration parameters, its API reference, its tutorials, or the growing family of companion tools (React bindings, the CLI, dashboards, connectors, and more). If you didn't know the exact term the docs used, you often came up empty.
The new search is built directly from the site's own content at publish time, indexed and ranked specifically for how people look for charting answers — by parameter name, by concept, or by describing what they're trying to do in plain English.
Two ways to search, working together
Keyword search is still there, and it's fast and precise. Type a parameter name, a chart type, or an exact phrase, and you'll get ranked results with highlighted matches and deep links straight to the relevant page, section, or parameter. The index covers every page on the site, every documented section, the full API parameter reference, and now the knowledge base content underneath it all — thousands of individually searchable entries.
Semantic search runs alongside it. Instead of only matching words, it also matches meaning. Search for "remove background grid lines" and you'll land on parameters like the axis grid visibility settings — even though your query never used those exact words. Search for "survival" and you'll see not just the Kaplan-Meier page but related visualizations like volcano plots that share the underlying statistical context, surfaced because they're conceptually close even when the vocabulary differs.
These two approaches are fused together automatically, so you don't have to choose between "search the way I know the term" and "search the way I'd describe the problem." Type naturally, and the results blend the best of literal matches and conceptual matches into a single ranked list, with exact parameter names still floating to the top when that's clearly what you want.
As you type, the results update live — a responsive, typeahead experience with keyboard navigation, so you can arrow down to a result and hit Enter without reaching for the mouse. Every result links directly to the exact page, section anchor, or parameter — no digging through a long page to find what matched.
Ask the docs directly
Beyond browsing results, the search modal includes an "✨ Ask" option. Instead of returning a list of pages for you to read through, it hands your question to the underlying documentation itself and generates a direct, cited answer — written entirely from the actual CanvasXpress docs, with footnote-style citations linking back to the exact source pages used to compose the answer.
Ask something like "how do I color a heatmap?" and you get a concise, synthesized explanation with [1], [2]-style citations you can click to jump straight to the underlying parameter or guide. It's the fastest way to get an answer without reading three separate pages to piece it together yourself — and because every claim is traceable to a real documentation source, you can always verify it.
If an AI-generated answer can't be produced for any reason, the search gracefully falls back to showing you the ranked results list — you're never left with a broken experience, just a slightly less summarized one.
It covers more than just the main site
CanvasXpress isn't just one repository anymore — there's the core library, React bindings, a CLI, dashboards, data connectors, companion SDKs, and more, each with its own README and documentation. The search index now reaches across this entire family of companion projects, so a query can surface relevant guidance from a companion repo's documentation, not just canvasxpress.org itself. Those results are clearly marked and open in a new tab, since they live outside the main site.
This means the search box on CanvasXpress.org is increasingly becoming a single entry point into the whole ecosystem — whether the answer lives in the main parameter reference, a tutorial page, or a setup guide in the CLI or React project.
Try it
The search box is available from the toolbar on every page of CanvasXpress.org. Try a parameter name you already know, and then try describing a problem in your own words — "make my axis labels bigger" or "change the legend position" — and compare the results. Then click "✨ Ask" on a question you'd normally have to dig for, and see the cited answer come back in seconds.
Good documentation search isn't just about finding pages — it's about getting to the right answer as quickly as possible, in whatever words you happen to think of first. That's the goal here, and it's live on the site today.