Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
14d2d19
feat: implement hybrid search support in @vtexdocs/components
barbara-celi May 5, 2026
b5c2371
fix: improve request selection in hybrid search configuration
barbara-celi May 5, 2026
946079e
docs: remove outdated hybrid search implementation documentation
barbara-celi May 5, 2026
dfe539e
feat: enhance hybrid search configuration with caching and upstream f…
barbara-celi May 13, 2026
96433c2
fix: update search results pagination and improve request handling
barbara-celi May 19, 2026
977f53a
refactor: streamline InfiniteHits component export and add TypeScript…
barbara-celi May 19, 2026
365740f
feat: add Markdown stripping utility and update search results pagina…
barbara-celi Jun 8, 2026
efaa7a1
fix: improve markdown stripping in search snippets
barbara-celi Jun 8, 2026
382a652
fix: improve URL building for tracks and fix snippet truncation
barbara-celi Jun 8, 2026
e9bfe23
fix: enhance URL building for tutorials and special doctypes
barbara-celi Jun 8, 2026
98263df
fix: enhance URL building for special document types
barbara-celi Jun 8, 2026
f560d7b
fix: refine URL building for document types in search configuration
barbara-celi Jun 8, 2026
e45bd90
fix: refine URL building for special document types in search configu…
barbara-celi Jun 8, 2026
15b6558
fix: streamline URL building logic for document types in search confi…
barbara-celi Jun 10, 2026
41c761f
fix: enhance markdown stripping in snippet utility
barbara-celi Jun 15, 2026
9d38620
fix: enhance markdown stripping in snippet utility
barbara-celi Jun 15, 2026
1826264
Merge branch 'main' into feat/hybrid-search
barbara-celi Jun 15, 2026
a1c8324
test(search-filter-tab-bar): add data-testid attributes for Cypress s…
PedroAntunesCosta Jun 16, 2026
f9cd02b
fix: improve markdown stripping in string utility to handle truncated…
barbara-celi Jun 17, 2026
e0fce1e
Merge branch 'feat/hybrid-search' of https://github.com/vtexdocs/comp…
barbara-celi Jun 17, 2026
7e54532
chore: merge main into feat/hybrid-search
PedroAntunesCosta Jun 29, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 31 additions & 2 deletions dist/index.d.mts
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,36 @@ interface AlgoliaConfig {
instantSearchConfigs?: any;
useLanguageFilter?: boolean;
}
declare const createAlgoliaClient: (config: AlgoliaConfig) => void;
interface HybridSearchConfig {
apiEndpoint: string;
source: 'help-center' | 'dev-portal';
defaultLimit?: number;
itemsPerPage?: number;
useLanguageFilter?: boolean;
/**
* Max number of results to request from the upstream API in a single call.
* The Hybrid Search upstream does not support pagination, so the adapter
* fetches a large slice once and paginates / filters client-side.
* Defaults to 100 (the upstream HS_MAX_LIMIT).
*/
upstreamFetchSize?: number;
/**
* TTL (ms) for the in-memory response cache keyed by query+locale.
* A short TTL is enough to let `connectInfiniteHits` page through the
* results without re-fetching the upstream on every refineNext call.
* Defaults to 60_000 ms.
*/
cacheTtlMs?: number;
}
type SearchBackendConfig = {
backend: 'algolia';
algolia: AlgoliaConfig;
} | {
backend: 'hybrid';
hybrid: HybridSearchConfig;
index: string;
};
declare function SearchConfig(config: SearchBackendConfig | AlgoliaConfig): void;

declare const APIGuidesIcon: (props: IconProps) => react_jsx_runtime.JSX.Element;

Expand Down Expand Up @@ -375,4 +404,4 @@ declare const LikeIcon: (props: IconProps) => react_jsx_runtime.JSX.Element;

declare const LikeSelectedIcon: (props: IconProps) => react_jsx_runtime.JSX.Element;

export { APIGuidesIcon, APIReferenceIcon, AddedIcon, AnnouncementIcon, AppDevelopmentIcon, ArrowLeftIcon, ArrowRightIcon, CaretIcon, ChatGPTIcon, CheckboxIcon, ClaudeIcon, CloseFilterIcon, CloseIcon, CommunityIcon, CookieBar, CopilotIcon, CopyIcon, CopyLinkButton, DeprecatedIcon, DeveloperPortalIcon, DocumentationUpdatesIcon, EditIcon, EmailIcon, ExpandedResultsIcon, FAQIcon, FacebookCircleIcon, FacebookIcon, FeedbackSection, ListingFilter as Filter, type FilterGroup, FilterIcon, type FilterOption, FixedIcon, GearTroubleshootingIcon, GeminiIcon, GithubIcon, GraphIcon, GridIcon, HamburgerMenu, HelpCenterIcon, ImprovedIcon, InfoIcon, Input, IgIcon as InstagramIcon, type Item, KnownIssueIcon as KnownIssuesIcon, LibraryContext, LibraryContextProvider, LikeIcon, LikeSelectedIcon, LinkIcon, LinkedinCircleIcon, LinkedinIcon, ListingFilter, type ListingFilterLabels, type ListingFilterProps, type ListingFilterSelection, LongArrowIcon, MarkdownRenderer, MegaphoneIcon, MenuIcon, NewIcon, PaperIcon, ReleaseNotesIcon, RemovedIcon, ResizeIcon, Search, createAlgoliaClient as SearchConfig, SearchIcon, SearchInput, ShareButton, ShareIcon, SideBarToggleIcon, Sidebar, StartHereIcon, StorefrontDevelopmentIcon, SubscriptionList, TableOfContents, Tag, type TagColor, type TagProps, TrashcanIcon, TroubleshootingCard, type TroubleshootingCardProps, type TroubleshootingCardVariant, type TroubleshootingFilterState, TroubleshootingIcon, type TroubleshootingItem, TutorialsIcon, TwitterCircleIcon, TwitterIcon, VTEXDevPortalIcon, VTEXHelpCenterIcon, VTEXIOAppsIcon, VTEXLogoFooter, WarningIcon, YoutubeIcon, collectTroubleshootingFilterOptions, filterTroubleshootingItems, getDaysElapsed };
export { APIGuidesIcon, APIReferenceIcon, AddedIcon, type AlgoliaConfig, AnnouncementIcon, AppDevelopmentIcon, ArrowLeftIcon, ArrowRightIcon, CaretIcon, ChatGPTIcon, CheckboxIcon, ClaudeIcon, CloseFilterIcon, CloseIcon, CommunityIcon, CookieBar, CopilotIcon, CopyIcon, CopyLinkButton, DeprecatedIcon, DeveloperPortalIcon, DocumentationUpdatesIcon, EditIcon, EmailIcon, ExpandedResultsIcon, FAQIcon, FacebookCircleIcon, FacebookIcon, FeedbackSection, ListingFilter as Filter, type FilterGroup, FilterIcon, type FilterOption, FixedIcon, GearTroubleshootingIcon, GeminiIcon, GithubIcon, GraphIcon, GridIcon, HamburgerMenu, HelpCenterIcon, type HybridSearchConfig, ImprovedIcon, InfoIcon, Input, IgIcon as InstagramIcon, type Item, KnownIssueIcon as KnownIssuesIcon, LibraryContext, LibraryContextProvider, LikeIcon, LikeSelectedIcon, LinkIcon, LinkedinCircleIcon, LinkedinIcon, ListingFilter, type ListingFilterLabels, type ListingFilterProps, type ListingFilterSelection, LongArrowIcon, MarkdownRenderer, MegaphoneIcon, MenuIcon, NewIcon, PaperIcon, ReleaseNotesIcon, RemovedIcon, ResizeIcon, Search, type SearchBackendConfig, SearchConfig, SearchIcon, SearchInput, ShareButton, ShareIcon, SideBarToggleIcon, Sidebar, StartHereIcon, StorefrontDevelopmentIcon, SubscriptionList, TableOfContents, Tag, type TagColor, type TagProps, TrashcanIcon, TroubleshootingCard, type TroubleshootingCardProps, type TroubleshootingCardVariant, type TroubleshootingFilterState, TroubleshootingIcon, type TroubleshootingItem, TutorialsIcon, TwitterCircleIcon, TwitterIcon, VTEXDevPortalIcon, VTEXHelpCenterIcon, VTEXIOAppsIcon, VTEXLogoFooter, WarningIcon, YoutubeIcon, collectTroubleshootingFilterOptions, filterTroubleshootingItems, getDaysElapsed };
Loading