@lastshotlabs/slingshot-search
npm install @lastshotlabs/slingshot-search
Functions
Section titled “Functions”createAlgoliaProvider
Section titled “createAlgoliaProvider”Algolia search provider.
HTTP-based provider that communicates with the Algolia REST API.
Uses native fetch (available in Bun) with retry logic and
exponential backoff.
Implements the full SearchProvider interface including lifecycle, index
management, document operations, search, suggest, and task monitoring.
Algolia operations return task IDs for indexing mutations; search is synchronous.
function createAlgoliaProvider(config: AlgoliaProviderConfig): SearchProviderSource: packages/slingshot-search/src/providers/algolia.ts
createElasticsearchProvider
Section titled “createElasticsearchProvider”Elasticsearch search provider.
HTTP-based provider that communicates with an Elasticsearch cluster via its
REST API. Uses native fetch (available in Bun) with retry logic and
exponential backoff.
Implements the full SearchProvider interface including lifecycle, index
management, document operations, search, suggest, and task monitoring.
Elasticsearch operations are synchronous for most document/search APIs,
so waitForTask is a no-op.
function createElasticsearchProvider(config: ElasticsearchProviderConfig): SearchProviderSource: packages/slingshot-search/src/providers/elasticsearch.ts
createEventSyncManager
Section titled “createEventSyncManager”Event-bus sync manager.
Manages event-bus subscriptions for entities with syncMode: 'event-bus'.
Supports config-driven entities discovered via the entity registry.
Batches indexing operations with a configurable flush interval and queue size threshold. Deletions are flushed immediately to avoid stale data.
All state is closure-owned — no module-level mutable state.
function createEventSyncManager(config: EventSyncManagerConfig): EventSyncManagerSource: packages/slingshot-search/src/eventSync.ts
createFileDlqStore
Section titled “createFileDlqStore”Event-bus sync manager.
Manages event-bus subscriptions for entities with syncMode: 'event-bus'.
Supports config-driven entities discovered via the entity registry.
Batches indexing operations with a configurable flush interval and queue size threshold. Deletions are flushed immediately to avoid stale data.
All state is closure-owned — no module-level mutable state.
function createFileDlqStore(config: FileDlqStoreConfig): FileDlqStoreSource: packages/slingshot-search/src/eventSync.ts
createInMemoryRateLimitStore
Section titled “createInMemoryRateLimitStore”In-memory token-bucket rate limiter for search and suggest routes.
The store is injectable so deployments can swap the in-memory implementation for a Redis or Memcached backend without touching the route handlers.
Default policy: 60 requests / 60 s per (tenant, ip) tuple.
function createInMemoryRateLimitStore(): RateLimitStoreSource: packages/slingshot-search/src/routes/rateLimiter.ts
createRateLimitMiddleware
Section titled “createRateLimitMiddleware”In-memory token-bucket rate limiter for search and suggest routes.
The store is injectable so deployments can swap the in-memory implementation for a Redis or Memcached backend without touching the route handlers.
Default policy: 60 requests / 60 s per (tenant, ip) tuple.
function createRateLimitMiddleware(options: RateLimitOptions = {}): voidSource: packages/slingshot-search/src/routes/rateLimiter.ts
createSearchCircuitBreaker
Section titled “createSearchCircuitBreaker”Circuit breaker for search provider calls at the search-manager level.
Provides manager-level fail-fast behavior when a search provider is
unreachable, independent of any provider-level breakers. Mirrors the
pattern from slingshot-mail and slingshot-assets so operational
behaviour stays uniform across production-track packages.
State machine: closed — normal operation; failures increment a counter. open — fail fast; reject every request until cooldown elapses. half-open — let exactly one probe through; success resets, failure re-opens.
function createSearchCircuitBreaker(opts: SearchCircuitBreakerOptions,): SearchCircuitBreakerSource: packages/slingshot-search/src/searchCircuitBreaker.ts
createSearchPackage
Section titled “createSearchPackage”Search package factory.
Produces a SlingshotPackageDefinition consumed via createApp({ packages: [...] }).
Lifecycle:
setupMiddleware— registers internal search events on the framework bus.setupRoutes— mounts per-entity search, suggest, federated, and admin routers.setupPost— discovers searchable entities, initializes indexes, subscribes to entity CRUD events for eventual sync, publishes the runtime through pluginState (legacy) and theSearchRuntimeCapcapability.teardown— flushes pending syncs and disconnects providers.
function createSearchPackage(rawConfig: SearchPluginConfig, options?: { logger?: Logger },): SlingshotPackageDefinitionSource: packages/slingshot-search/src/plugin.ts
createTypesenseProvider
Section titled “createTypesenseProvider”Typesense search provider.
HTTP-based provider that communicates with a Typesense instance via its
REST API. Uses native fetch (available in Bun) with retry logic and
exponential backoff.
Implements the full SearchProvider interface including lifecycle, index
management, document operations, search, suggest, and task monitoring.
Typesense operations are synchronous (no task queue), so waitForTask
is a no-op.
function createTypesenseProvider(config: TypesenseProviderConfig): SearchProviderSource: packages/slingshot-search/src/providers/typesense.ts
isTransientError
Section titled “isTransientError”Retry with exponential backoff for search provider operations.
Transient failures (timeouts, connection resets, 5xx, 429) are retried automatically. Circuit-open errors and non-transient errors propagate immediately so the circuit breaker can maintain accurate state.
function isTransientError(err: unknown): booleanSource: packages/slingshot-search/src/retry.ts
withRetry
Section titled “withRetry”Retry with exponential backoff for search provider operations.
Transient failures (timeouts, connection resets, 5xx, 429) are retried automatically. Circuit-open errors and non-transient errors propagate immediately so the circuit breaker can maintain accurate state.
async function withRetry<T>(fn: () => Promise<T>, options?: Partial<RetryOptions>,): Promise<T>Source: packages/slingshot-search/src/retry.ts
Constants
Section titled “Constants”Search
Section titled “Search”Public contract for slingshot-search.
Cross-package consumers resolve SearchRuntimeCap through ctx.capabilities.require(...)
to ensure config entities are indexed and to retrieve typed search clients.
Source: packages/slingshot-search/src/public.ts
SEARCH_ROUTES
Section titled “SEARCH_ROUTES”Named route group identifiers for the search plugin.
Pass values to SearchPluginConfig.disableRoutes to suppress specific
route groups at startup.
Source: packages/slingshot-search/src/routes/index.ts
SearchRuntimeCap
Section titled “SearchRuntimeCap”Public contract for slingshot-search.
Cross-package consumers resolve SearchRuntimeCap through ctx.capabilities.require(...)
to ensure config entities are indexed and to retrieve typed search clients.
Source: packages/slingshot-search/src/public.ts
Classes
Section titled “Classes”ProviderUnavailableError
Section titled “ProviderUnavailableError”Typesense search provider.
HTTP-based provider that communicates with a Typesense instance via its
REST API. Uses native fetch (available in Bun) with retry logic and
exponential backoff.
Implements the full SearchProvider interface including lifecycle, index
management, document operations, search, suggest, and task monitoring.
Typesense operations are synchronous (no task queue), so waitForTask
is a no-op.
Source: packages/slingshot-search/src/providers/typesense.ts
SearchCircuitOpenError
Section titled “SearchCircuitOpenError”Circuit breaker for search provider calls at the search-manager level.
Provides manager-level fail-fast behavior when a search provider is
unreachable, independent of any provider-level breakers. Mirrors the
pattern from slingshot-mail and slingshot-assets so operational
behaviour stays uniform across production-track packages.
State machine: closed — normal operation; failures increment a counter. open — fail fast; reject every request until cooldown elapses. half-open — let exactly one probe through; success resets, failure re-opens.
Source: packages/slingshot-search/src/searchCircuitBreaker.ts
SearchConfigError
Section titled “SearchConfigError”Thrown when search plugin configuration is invalid.
Source: packages/slingshot-search/src/errors/searchErrors.ts
SearchFilterError
Section titled “SearchFilterError”Thrown when search plugin configuration is invalid.
Source: packages/slingshot-search/src/errors/searchErrors.ts
SearchIndexNotFoundError
Section titled “SearchIndexNotFoundError”Thrown when search plugin configuration is invalid.
Source: packages/slingshot-search/src/errors/searchErrors.ts
SearchPaginationError
Section titled “SearchPaginationError”Thrown when search plugin configuration is invalid.
Source: packages/slingshot-search/src/errors/searchErrors.ts
SearchProviderError
Section titled “SearchProviderError”Thrown when search plugin configuration is invalid.
Source: packages/slingshot-search/src/errors/searchErrors.ts
SearchTransformError
Section titled “SearchTransformError”Thrown when search plugin configuration is invalid.
Source: packages/slingshot-search/src/errors/searchErrors.ts
SearchValidationError
Section titled “SearchValidationError”Thrown when search plugin configuration is invalid.
Source: packages/slingshot-search/src/errors/searchErrors.ts
Interfaces
Section titled “Interfaces”AlgoliaProviderConfig
Section titled “AlgoliaProviderConfig”Full search provider interface and provider-specific configurations.
SearchProvider extends the minimal SearchProviderContract from core
with lifecycle, index management, search, suggest, and task monitoring.
Source: packages/slingshot-search/src/types/provider.ts
CircuitBreakerHealth
Section titled “CircuitBreakerHealth”Typesense search provider.
HTTP-based provider that communicates with a Typesense instance via its
REST API. Uses native fetch (available in Bun) with retry logic and
exponential backoff.
Implements the full SearchProvider interface including lifecycle, index
management, document operations, search, suggest, and task monitoring.
Typesense operations are synchronous (no task queue), so waitForTask
is a no-op.
Source: packages/slingshot-search/src/providers/typesense.ts
DbNativeProviderConfig
Section titled “DbNativeProviderConfig”Full search provider interface and provider-specific configurations.
SearchProvider extends the minimal SearchProviderContract from core
with lifecycle, index management, search, suggest, and task monitoring.
Source: packages/slingshot-search/src/types/provider.ts
DlqStore
Section titled “DlqStore”Event-bus sync manager.
Manages event-bus subscriptions for entities with syncMode: 'event-bus'.
Supports config-driven entities discovered via the entity registry.
Batches indexing operations with a configurable flush interval and queue size threshold. Deletions are flushed immediately to avoid stale data.
All state is closure-owned — no module-level mutable state.
Source: packages/slingshot-search/src/eventSync.ts
ElasticsearchProviderConfig
Section titled “ElasticsearchProviderConfig”Full search provider interface and provider-specific configurations.
SearchProvider extends the minimal SearchProviderContract from core
with lifecycle, index management, search, suggest, and task monitoring.
Source: packages/slingshot-search/src/types/provider.ts
EventSyncHealth
Section titled “EventSyncHealth”Event-bus sync manager.
Manages event-bus subscriptions for entities with syncMode: 'event-bus'.
Supports config-driven entities discovered via the entity registry.
Batches indexing operations with a configurable flush interval and queue size threshold. Deletions are flushed immediately to avoid stale data.
All state is closure-owned — no module-level mutable state.
Source: packages/slingshot-search/src/eventSync.ts
EventSyncManager
Section titled “EventSyncManager”Event-bus sync manager.
Manages event-bus subscriptions for entities with syncMode: 'event-bus'.
Supports config-driven entities discovered via the entity registry.
Batches indexing operations with a configurable flush interval and queue size threshold. Deletions are flushed immediately to avoid stale data.
All state is closure-owned — no module-level mutable state.
Source: packages/slingshot-search/src/eventSync.ts
EventSyncManagerConfig
Section titled “EventSyncManagerConfig”Event-bus sync manager.
Manages event-bus subscriptions for entities with syncMode: 'event-bus'.
Supports config-driven entities discovered via the entity registry.
Batches indexing operations with a configurable flush interval and queue size threshold. Deletions are flushed immediately to avoid stale data.
All state is closure-owned — no module-level mutable state.
Source: packages/slingshot-search/src/eventSync.ts
FacetOptions
Section titled “FacetOptions”Search query types — the full query API for enterprise search.
Supports full-text search, faceted filtering, geo queries, highlighting, snippets, federated (multi-index) search, and autocomplete suggestions.
Source: packages/slingshot-search/src/types/query.ts
FacetStats
Section titled “FacetStats”Search response types — structured results from search, suggest, and federated search operations.
Source: packages/slingshot-search/src/types/response.ts
FederatedSearchEntry
Section titled “FederatedSearchEntry”Search query types — the full query API for enterprise search.
Supports full-text search, faceted filtering, geo queries, highlighting, snippets, federated (multi-index) search, and autocomplete suggestions.
Source: packages/slingshot-search/src/types/query.ts
FederatedSearchHit
Section titled “FederatedSearchHit”Search response types — structured results from search, suggest, and federated search operations.
Source: packages/slingshot-search/src/types/response.ts
FederatedSearchQuery
Section titled “FederatedSearchQuery”Search query types — the full query API for enterprise search.
Supports full-text search, faceted filtering, geo queries, highlighting, snippets, federated (multi-index) search, and autocomplete suggestions.
Source: packages/slingshot-search/src/types/query.ts
FederatedSearchResponse
Section titled “FederatedSearchResponse”Search response types — structured results from search, suggest, and federated search operations.
Source: packages/slingshot-search/src/types/response.ts
FileDlqStore
Section titled “FileDlqStore”Event-bus sync manager.
Manages event-bus subscriptions for entities with syncMode: 'event-bus'.
Supports config-driven entities discovered via the entity registry.
Batches indexing operations with a configurable flush interval and queue size threshold. Deletions are flushed immediately to avoid stale data.
All state is closure-owned — no module-level mutable state.
Source: packages/slingshot-search/src/eventSync.ts
FileDlqStoreConfig
Section titled “FileDlqStoreConfig”Event-bus sync manager.
Manages event-bus subscriptions for entities with syncMode: 'event-bus'.
Supports config-driven entities discovered via the entity registry.
Batches indexing operations with a configurable flush interval and queue size threshold. Deletions are flushed immediately to avoid stale data.
All state is closure-owned — no module-level mutable state.
Source: packages/slingshot-search/src/eventSync.ts
FlushDeadLetterEntry
Section titled “FlushDeadLetterEntry”Event-bus sync manager.
Manages event-bus subscriptions for entities with syncMode: 'event-bus'.
Supports config-driven entities discovered via the entity registry.
Batches indexing operations with a configurable flush interval and queue size threshold. Deletions are flushed immediately to avoid stale data.
All state is closure-owned — no module-level mutable state.
Source: packages/slingshot-search/src/eventSync.ts
HighlightConfig
Section titled “HighlightConfig”Search query types — the full query API for enterprise search.
Supports full-text search, faceted filtering, geo queries, highlighting, snippets, federated (multi-index) search, and autocomplete suggestions.
Source: packages/slingshot-search/src/types/query.ts
LanguageConfig
Section titled “LanguageConfig”Full search provider interface and provider-specific configurations.
SearchProvider extends the minimal SearchProviderContract from core
with lifecycle, index management, search, suggest, and task monitoring.
Source: packages/slingshot-search/src/types/provider.ts
MeilisearchProviderConfig
Section titled “MeilisearchProviderConfig”Full search provider interface and provider-specific configurations.
SearchProvider extends the minimal SearchProviderContract from core
with lifecycle, index management, search, suggest, and task monitoring.
Source: packages/slingshot-search/src/types/provider.ts
RateLimitOptions
Section titled “RateLimitOptions”In-memory token-bucket rate limiter for search and suggest routes.
The store is injectable so deployments can swap the in-memory implementation for a Redis or Memcached backend without touching the route handlers.
Default policy: 60 requests / 60 s per (tenant, ip) tuple.
Source: packages/slingshot-search/src/routes/rateLimiter.ts
RateLimitStore
Section titled “RateLimitStore”In-memory token-bucket rate limiter for search and suggest routes.
The store is injectable so deployments can swap the in-memory implementation for a Redis or Memcached backend without touching the route handlers.
Default policy: 60 requests / 60 s per (tenant, ip) tuple.
Source: packages/slingshot-search/src/routes/rateLimiter.ts
RetryOptions
Section titled “RetryOptions”Retry with exponential backoff for search provider operations.
Transient failures (timeouts, connection resets, 5xx, 429) are retried automatically. Circuit-open errors and non-transient errors propagate immediately so the circuit breaker can maintain accurate state.
Source: packages/slingshot-search/src/retry.ts
SearchAdminGate
Section titled “SearchAdminGate”Search plugin configuration types.
SearchPluginConfig is passed to createSearchPackage() and controls
provider setup, default sync mode, and plugin-level settings.
Source: packages/slingshot-search/src/types/config.ts
SearchCircuitBreaker
Section titled “SearchCircuitBreaker”Circuit breaker for search provider calls at the search-manager level.
Provides manager-level fail-fast behavior when a search provider is
unreachable, independent of any provider-level breakers. Mirrors the
pattern from slingshot-mail and slingshot-assets so operational
behaviour stays uniform across production-track packages.
State machine: closed — normal operation; failures increment a counter. open — fail fast; reject every request until cooldown elapses. half-open — let exactly one probe through; success resets, failure re-opens.
Source: packages/slingshot-search/src/searchCircuitBreaker.ts
SearchCircuitBreakerHealth
Section titled “SearchCircuitBreakerHealth”Circuit breaker for search provider calls at the search-manager level.
Provides manager-level fail-fast behavior when a search provider is
unreachable, independent of any provider-level breakers. Mirrors the
pattern from slingshot-mail and slingshot-assets so operational
behaviour stays uniform across production-track packages.
State machine: closed — normal operation; failures increment a counter. open — fail fast; reject every request until cooldown elapses. half-open — let exactly one probe through; success resets, failure re-opens.
Source: packages/slingshot-search/src/searchCircuitBreaker.ts
SearchCircuitBreakerOptions
Section titled “SearchCircuitBreakerOptions”Circuit breaker for search provider calls at the search-manager level.
Provides manager-level fail-fast behavior when a search provider is
unreachable, independent of any provider-level breakers. Mirrors the
pattern from slingshot-mail and slingshot-assets so operational
behaviour stays uniform across production-track packages.
State machine: closed — normal operation; failures increment a counter. open — fail fast; reject every request until cooldown elapses. half-open — let exactly one probe through; success resets, failure re-opens.
Source: packages/slingshot-search/src/searchCircuitBreaker.ts
SearchFilterAnd
Section titled “SearchFilterAnd”Search query types — the full query API for enterprise search.
Supports full-text search, faceted filtering, geo queries, highlighting, snippets, federated (multi-index) search, and autocomplete suggestions.
Source: packages/slingshot-search/src/types/query.ts
SearchFilterCondition
Section titled “SearchFilterCondition”Search query types — the full query API for enterprise search.
Supports full-text search, faceted filtering, geo queries, highlighting, snippets, federated (multi-index) search, and autocomplete suggestions.
Source: packages/slingshot-search/src/types/query.ts
SearchFilterGeoBoundingBox
Section titled “SearchFilterGeoBoundingBox”Search query types — the full query API for enterprise search.
Supports full-text search, faceted filtering, geo queries, highlighting, snippets, federated (multi-index) search, and autocomplete suggestions.
Source: packages/slingshot-search/src/types/query.ts
SearchFilterGeoRadius
Section titled “SearchFilterGeoRadius”Search query types — the full query API for enterprise search.
Supports full-text search, faceted filtering, geo queries, highlighting, snippets, federated (multi-index) search, and autocomplete suggestions.
Source: packages/slingshot-search/src/types/query.ts
SearchFilterNot
Section titled “SearchFilterNot”Search query types — the full query API for enterprise search.
Supports full-text search, faceted filtering, geo queries, highlighting, snippets, federated (multi-index) search, and autocomplete suggestions.
Source: packages/slingshot-search/src/types/query.ts
SearchFilterOr
Section titled “SearchFilterOr”Search query types — the full query API for enterprise search.
Supports full-text search, faceted filtering, geo queries, highlighting, snippets, federated (multi-index) search, and autocomplete suggestions.
Source: packages/slingshot-search/src/types/query.ts
SearchHealthResult
Section titled “SearchHealthResult”Full search provider interface and provider-specific configurations.
SearchProvider extends the minimal SearchProviderContract from core
with lifecycle, index management, search, suggest, and task monitoring.
Source: packages/slingshot-search/src/types/provider.ts
SearchHit
Section titled “SearchHit”Search response types — structured results from search, suggest, and federated search operations.
Source: packages/slingshot-search/src/types/response.ts
SearchIndexSettings
Section titled “SearchIndexSettings”Full search provider interface and provider-specific configurations.
SearchProvider extends the minimal SearchProviderContract from core
with lifecycle, index management, search, suggest, and task monitoring.
Source: packages/slingshot-search/src/types/provider.ts
SearchIndexTask
Section titled “SearchIndexTask”Full search provider interface and provider-specific configurations.
SearchProvider extends the minimal SearchProviderContract from core
with lifecycle, index management, search, suggest, and task monitoring.
Source: packages/slingshot-search/src/types/provider.ts
SearchPluginConfig
Section titled “SearchPluginConfig”Search plugin configuration types.
SearchPluginConfig is passed to createSearchPackage() and controls
provider setup, default sync mode, and plugin-level settings.
Source: packages/slingshot-search/src/types/config.ts
SearchProvider
Section titled “SearchProvider”Full search provider interface and provider-specific configurations.
SearchProvider extends the minimal SearchProviderContract from core
with lifecycle, index management, search, suggest, and task monitoring.
Source: packages/slingshot-search/src/types/provider.ts
SearchProviderBaseConfig
Section titled “SearchProviderBaseConfig”Full search provider interface and provider-specific configurations.
SearchProvider extends the minimal SearchProviderContract from core
with lifecycle, index management, search, suggest, and task monitoring.
Source: packages/slingshot-search/src/types/provider.ts
SearchQuery
Section titled “SearchQuery”Search query types — the full query API for enterprise search.
Supports full-text search, faceted filtering, geo queries, highlighting, snippets, federated (multi-index) search, and autocomplete suggestions.
Source: packages/slingshot-search/src/types/query.ts
SearchRankingConfig
Section titled “SearchRankingConfig”Full search provider interface and provider-specific configurations.
SearchProvider extends the minimal SearchProviderContract from core
with lifecycle, index management, search, suggest, and task monitoring.
Source: packages/slingshot-search/src/types/provider.ts
SearchResponse
Section titled “SearchResponse”Search response types — structured results from search, suggest, and federated search operations.
Source: packages/slingshot-search/src/types/response.ts
SnippetConfig
Section titled “SnippetConfig”Search query types — the full query API for enterprise search.
Supports full-text search, faceted filtering, geo queries, highlighting, snippets, federated (multi-index) search, and autocomplete suggestions.
Source: packages/slingshot-search/src/types/query.ts
SuggestQuery
Section titled “SuggestQuery”Search query types — the full query API for enterprise search.
Supports full-text search, faceted filtering, geo queries, highlighting, snippets, federated (multi-index) search, and autocomplete suggestions.
Source: packages/slingshot-search/src/types/query.ts
SuggestResponse
Section titled “SuggestResponse”Search response types — structured results from search, suggest, and federated search operations.
Source: packages/slingshot-search/src/types/response.ts
SynonymDefinition
Section titled “SynonymDefinition”Full search provider interface and provider-specific configurations.
SearchProvider extends the minimal SearchProviderContract from core
with lifecycle, index management, search, suggest, and task monitoring.
Source: packages/slingshot-search/src/types/provider.ts
TypesenseProviderConfig
Section titled “TypesenseProviderConfig”Full search provider interface and provider-specific configurations.
SearchProvider extends the minimal SearchProviderContract from core
with lifecycle, index management, search, suggest, and task monitoring.
Source: packages/slingshot-search/src/types/provider.ts
TypoToleranceConfig
Section titled “TypoToleranceConfig”Full search provider interface and provider-specific configurations.
SearchProvider extends the minimal SearchProviderContract from core
with lifecycle, index management, search, suggest, and task monitoring.
Source: packages/slingshot-search/src/types/provider.ts
AnySearchProviderConfig
Section titled “AnySearchProviderConfig”Full search provider interface and provider-specific configurations.
SearchProvider extends the minimal SearchProviderContract from core
with lifecycle, index management, search, suggest, and task monitoring.
Source: packages/slingshot-search/src/types/provider.ts
SearchFilter
Section titled “SearchFilter”Search query types — the full query API for enterprise search.
Supports full-text search, faceted filtering, geo queries, highlighting, snippets, federated (multi-index) search, and autocomplete suggestions.
Source: packages/slingshot-search/src/types/query.ts
SearchFilterOp
Section titled “SearchFilterOp”Search query types — the full query API for enterprise search.
Supports full-text search, faceted filtering, geo queries, highlighting, snippets, federated (multi-index) search, and autocomplete suggestions.
Source: packages/slingshot-search/src/types/query.ts
SearchFilterValue
Section titled “SearchFilterValue”Search query types — the full query API for enterprise search.
Supports full-text search, faceted filtering, geo queries, highlighting, snippets, federated (multi-index) search, and autocomplete suggestions.
Source: packages/slingshot-search/src/types/query.ts
SearchRankingRule
Section titled “SearchRankingRule”Full search provider interface and provider-specific configurations.
SearchProvider extends the minimal SearchProviderContract from core
with lifecycle, index management, search, suggest, and task monitoring.
Source: packages/slingshot-search/src/types/provider.ts
SearchRoute
Section titled “SearchRoute”Named route group identifiers for the search plugin.
Pass values to SearchPluginConfig.disableRoutes to suppress specific
route groups at startup.
Source: packages/slingshot-search/src/routes/index.ts
SearchSort
Section titled “SearchSort”Search query types — the full query API for enterprise search.
Supports full-text search, faceted filtering, geo queries, highlighting, snippets, federated (multi-index) search, and autocomplete suggestions.
Source: packages/slingshot-search/src/types/query.ts