searching by terms implemented