add seperate function for terms query so it shows up in API docs