buildTermIndex - What is the function of the 'fields' parameter?