11 - "Mr. Green killed Colonel Mustard in the study with the candlestick. Mr. Green is not a very nice fellow."
22 - "Professor Plumb has a green plant in his study."
33 - "Miss Scarlett watered Professor Plumb's green plant while he was away from his office last week."
4
5l1 = 19
6l2 = 9
7l3 = 16
8
9q1 - "green"
10q1 = [0.0, 0.71]
11
121 = [0.0, 0.0747]
132 = [0.0, 0.1555]
143 = [0.0, 0.0875]
15
16green : total count = 4, idf = 0.71
17mr : total count = 2, idf = 1.40
18the : total count = 2, idf = 1.40
19plant : total count = 2, idf = 1.40
20
21q2 = "Mr. Green"
22q2 = [1.4, 0.71]
23
241 = [0.147, 0.0747]
252 = [0, 0.1555]
263 = [0, 0.0875]
27
28q3 = "the green plant"
29q3 = [0.5, 0.25, 0.5]
30
311 = [1, 0.5, 0]
322 = [0, 0.25, 0.5]
333 = [0, 0.25, 0.5]
34
35Inverse Index as a trie
36values are {docId: score} where score is the sum of tf across fields, with multipliers applied
37when querying calculate the idf and multiply it by the tf
38
39for a multi term query generate a vector using the idf
40find all the documents that match both queries, and generate a tf*idf
41
42word: {
43  totalCount: 123,
44  docs:
45}
46
47
48