Added query term filter to search API (bug 842693)