web search done right
fixed bug where new queries in serp wouldn't re-trigger search
Mikkel Denker90aa27232cc1
diff --git a/frontend/src/routes/search/+page.svelte b/frontend/src/routes/search/+page.svelteindex d3bd102e..eb00df52 100644--- a/frontend/src/routes/search/+page.svelte+++ b/frontend/src/routes/search/+page.svelte@@ -14,7 +14,7 @@import { browser } from '$app/environment';import Serp from './Serp.svelte';import Result from './Result.svelte';- import { search } from '$lib/search';+ import { search, type SearchParams } from '$lib/search';import { Keybind, searchCb, type Refs } from '$lib/keybind';import SpellCorrection from './SpellCorrection.svelte';import type { Count } from '$lib/api';@@ -53,11 +53,11 @@return rankingsToRanked(rankings);});- const clientSearch = async (hostRankings: RankedSites) => {+ const clientSearch = async (dataParams: SearchParams, hostRankings: RankedSites) => {if (!browser) return;const params = {- ...data.params,+ ...dataParams,showRankingSignals: $showRankingSignals,hostRankings,};@@ -132,7 +132,7 @@.exhaustive();};- $: clientResults = clientSearch($hostRankings);+ $: clientResults = clientSearch(data.params, $hostRankings);</script><svelte:window on:keydown={onKeyDown} />diff --git a/ltr/linear_model.py b/ltr/linear_model.pyindex 48ee757e..798d35e9 100644--- a/ltr/linear_model.py+++ b/ltr/linear_model.py@@ -131,7 +131,7 @@ result = differential_evolution(optim,bounds,maxiter=100,- popsize=5,+ popsize=2,disp=False,polish=False,callback=callback,