Add search function based on Vector Model to rank results.