Code
JavaScript
www-search/hooks/useSearchClient.js
import {useQuery} from 'search-client';
export function useSearchClient(query, opts = {}) {
const {intent = 'auto', limit = 30} = opts;
return useQuery('/api/serp', {query, intent, limit});
}
Open in Code Search
Updated 3d ago · Owned by Search Infra · 14 usages
Discussions · Interns 2026
Which ML courses count toward new-hire onboarding?
Sam Okafor · Jun 12, 2026 · 6 answers · 14 Reactions
Devon Park — Data Privacy Essentials is required for everyone; ML interns then take Intro to ML. Top answer · 9 upvotes
Priya Nair — The bootcamp counts too if your manager signs off. 3 upvotes
Join discussion
Discussions · Search Infra
useSearchClient returns stale results after intent switch — cache key bug?
Lena Fischer · Jul 15, 2026 · 4 answers · 9 Reactions
Marco Alfieri — The cache key drops intent; memoize on [query, intent] and it resolves. Top answer · 6 upvotes
Devon Park — Fix is out in D48812091, landing this week. 2 upvotes
View more