Client-side synonym expansion and Unicode normalization for en-US and pt-BR —
query enhanced before it leaves the browser. One HTTP call per search.
Works with any framework.
Query enhancement (client-side, before sending to Vectoria)
Original:—→Sent to server:—
Live demo connects to demo.vectoriasearch.com — 550 real products (Amazon ESCI dataset).
API key shown is the public demo key.
Deploy your own →
⚡
Zero extra roundtrips
Query expansion runs synchronously in JS. Vectoria receives one enhanced request.
🌎
pt-BR + en-US
Built-in synonym dictionaries for both locales. Add your own per-domain terms.
🧩
Any framework
Web Component works natively in React, Vue, Svelte, Angular, and plain HTML.
🎨
CSS custom properties
Theme with CSS variables. Override colors, radius, font, shadow — no JS needed.
Embed in 5 lines
<!-- 1. Load the widget --><scriptsrc="https://vectoriasearch.com/search-widget/vectoria-search.js"></script><!-- 2. Mount target --><divid="search"></div><!-- 3. Init --><script>VectoriaSearch.init({
container: '#search',
url: 'https://your-vectoria-server.com',
apiKey: 'your-api-key',
locale: 'pt-BR', // or 'en-US'
mode: 'hybrid',
limit: 10,
});
</script>
<scriptsrc="vectoria-search.js"></script><!-- Works in any framework that supports Web Components --><vectoria-searchurl="https://your-vectoria-server.com"api-key="your-api-key"locale="pt-BR"mode="hybrid"limit="10"></vectoria-search><script>// Listen for selection events
document.querySelector('vectoria-search')
.addEventListener('vs-select', (e) => {
window.location.href = `/products/${e.detail.id}`;
});
</script>