Comp4321 The Index May 14 2026

The anatomy of a top result.

query · user imdb chase rate movi · doc № 179
body match

Forward index · top stems on this page

bandit 17 movi 12 rate 11 user 10 imdb 10 smokei 10 eno 10 buford 8 titl 7 justic 7 plot 6 origin 6 part 6 sheriff 6

document length 818 body tokens  ·  max tf 17 (bandit)  ·  vocabulary 521 distinct stems  ·  title 3 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.1016
  2. cosine(query, title) × 2.0 no title overlap (×2.0 unused)0.0000
  3. weighted subtotal cosBody + 2.0 × cosTitle0.1016
  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 × pagerank0.1016

Per-query-stem · how each term contributes

  1. user wid 1045 · df 289 body tf 10 title tf 0 idf 0.054
  2. imdb wid 1084 · df 288 body tf 10 title tf 0 idf 0.059
  3. chase wid 0474 · df 8 body tf 4 title tf 0 idf 5.229
  4. rate wid 1518 · df 151 body tf 11 title tf 0 idf 0.990
  5. movi wid 0012 · df 290 body tf 12 title tf 0 idf 0.049

Outlinks (1)