Comp4321 The Index May 14 2026

The anatomy of a top result.

query · user imdb film rate command · doc № 194
body match

Forward index · top stems on this page

film 20 search 13 tv 12 titl 11 academi 8 derang 8 orang 8 british 8 award 8 ifilm 7 aka 6 der 6 episod 5 match 5

document length 317 body tokens  ·  max tf 20 (film)  ·  vocabulary 174 distinct stems  ·  title 2 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.0259
  2. cosine(query, title) × 2.0 no title overlap (×2.0 unused)0.0000
  3. weighted subtotal cosBody + 2.0 × cosTitle0.0259
  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.0259

Per-query-stem · how each term contributes

  1. user wid 1045 · df 289 body tf 1 title tf 0 idf 0.054
  2. imdb wid 1084 · df 288 body tf 4 title tf 0 idf 0.059
  3. film wid 1258 · df 162 body tf 20 title tf 0 idf 0.889
  4. rate wid 1518 · df 151 body tf 0 title tf 0 idf 0.990
  5. command wid 0254 · df 11 body tf 0 title tf 0 idf 4.769

Outlinks (1)