extended search capabilities
now the search looks in all fields (type, title, description, owner)
also refactored the query building for more code clarity