term->locations extraction with threads