Comp4321 The Index May 14 2026

The anatomy of a top result.

query · search titl razor red peter · doc № 207
title ×2.0 body match

Forward index · top stems on this page

search 13 titl 9 razor 8 red 8 peter 7 x 7 tosh 7 step 7 episod 5 match 5 movi 4 imdb 4 mai 4 tv 3

document length 203 body tokens  ·  max tf 13 (search)  ·  vocabulary 117 distinct stems  ·  title 6 stems

Score breakdown

Re-derived from the same tf·idf cosine values, boost factors, and PageRank multipliers the live ranker just used. weighted = body + title × 2.0 · final = weighted × phrase × pagerank.

  1. cosine(query, body) tf·idf body · 5 resolved stems0.6873
  2. cosine(query, title) × 2.0 title boost ×2.0 applied1.2969
  3. weighted subtotal cosBody + 2.0 × cosTitle1.9842
  4. × phrase multiplier stems not within 5-token window · ×1.0×1.0
  5. × pagerank multiplier PageRank not computed for this page · ×1.0×1.0000
  6. final score weighted × phrase × pagerank1.9842

Per-query-stem · how each term contributes

  1. search wid 0153 · df 147 body tf 13 title tf 0 idf 1.029
  2. titl wid 1103 · df 288 body tf 9 title tf 0 idf 0.059
  3. razor wid 0478 · df 3 body tf 8 title tf 1 idf 6.644
  4. red wid 0479 · df 22 body tf 8 title tf 1 idf 3.769
  5. peter wid 0305 · df 15 body tf 7 title tf 1 idf 4.322

Outlinks (1)