Before explaining how relevance works, it is important to distinguish between document processing and document access. To achieve the best performance possible, AFS retrieves upstream sort criteria at indexing time. By the time a user sends a query, the search engine is able to compute relevance in order to return the best matches first.