1 0 1 ... 9
doc 9
4 1 1 ... 2
doc 4
6 0 1 ... 9
doc 1
4 1 1 ... 0
doc n
...
...
1 0 1 ... 3
query
Rel(query, doci) = distance(query, doci)
distance(query, doc 9) = 0.87
distance(query, doc 4) = 0.71
distance(query, doc 1) = 0.57
...
distance(query, doc n) = 0.13