Bing: renew the session when its results are off-topic

Aperta
#809 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
55/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
backend, search

Direzione di ricerca

Read the implementation of the off-topic check, Bing session handling, and the engine hook; the issue does not name their files, so locate them in the repository. Add tests for one renewal after an off-topic result, no second renewal during the same search, and no renewal for an on-topic result. Keep the change limited to Bing and follow dependency #795.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

area:search maintainers roadmap

Problem

The spike in #738 found that a Bing session that gets off-topic pages gets them for every query it sends, from the first to the last. Keeping such a session keeps every later Bing result off-topic until it expires.

Change

  • When the off-topic check drops a Bing set, discard the session, so the next Bing request warms a new one.
  • At most one renewal per search. No retry inside the same search.
  • Engines opt in through a hook on the engine, not through a check on the engine's name.

Done when

  • A test: an off-topic set discards the session, and the next request makes one home-page visit on a new session.
  • A test: a second off-topic set in the same search does not renew again.
  • A test: an on-topic set keeps the session, with no extra warm-up.

Out of scope

Retrying the query inside the same search. Other engines.

Depends on: #795

Lingua principale
TypeScript
Stelle
5.4k
Fork
445
Merge medio
20h 41m
PR unite (30g)
85

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di KnockOutEZ/wigolo

Tutte le issue di KnockOutEZ/wigolo

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.