Every line of 'search query router' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your JavaScript code is secure.
144 search(query) { 145 this._assertNotFinalized(); 146 this._matchers.push(new Matcher.Search(query)); 147 return this; 148 }
Secure your code as it's written. Use Snyk Code to scan source code in minutes – no build needed – and fix issues immediately. Enable Snyk Code
52 resolve( 53 route: ActivatedRouteSnapshot, 54 state: RouterStateSnapshot, 55 ): Observable<PaginatedCombinedSearch> { 56 let params = {}; 57 for (const key in route.queryParams) { 58 if (route.queryParams.hasOwnProperty(key)) { 59 params[key] = route.queryParams[key]; 60 } 61 } 62 if (Object.keys(params).length === 0) { 63 params = DefaultParams.params; 64 } 65 return this.searchService.query(params); 66 }
45 doSearch(query) { 46 algoliaIndex.search({ 47 hitsPerPage: 1000, 48 query: query, 49 }, _displayResults); 50 }