TermQuery implementation for search().