Skip to main content

Seekora Search SDK

The Seekora Search SDK is a JavaScript/TypeScript SDK for integrating with the Seekora Search API. It provides a comprehensive set of features for building powerful search experiences.

Features

  • Search Functionality - Full-text search with filtering, faceting, and sorting
  • Multi-Search - Batch up to 10 queries in a single request for federated search
  • Query Suggestions - Autocomplete with dropdown recommendations and filtered tabs
  • Analytics Tracking - Track clicks, views, conversions, and custom events
  • Configuration Management - Manage store and query suggestions configuration
  • Personalization - Support for user ID, anonymous ID, and session ID
  • Multi-Environment - Built-in support for local, staging, and production environments
  • TypeScript First - Full type definitions included

Package Information

PropertyValue
Package Name@seekora-ai/search-sdk
LicenseMIT

Quick Example

import { SeekoraClient } from '@seekora-ai/search-sdk';

// Initialize client
const client = new SeekoraClient({
storeId: 'your-store-id',
readSecret: 'your-read-secret',
environment: 'production',
});

// Perform a search
const results = await client.search('laptop', {
per_page: 20,
filter_by: 'price:100-500',
facet_by: 'category',
sort_by: 'price:asc',
});

console.log(`Found ${results.totalResults} results`);

// Track a click event
await client.trackClick(results.results[0].id, 1, results.context);

Next Steps