When using Salton's model of vector-space retrieval all queries and documents are converted into term vectors. This enables the documents to matched to queries. The documents are the ranked by the total number of times the search terms appear within that document.