Fixed getAllTermIdMatching() sub-string matching