The query works for more than two terms. we have to make it work for one term only