implement entity search functionality