methods added to search by using a QueryBuilder