working implementation for search on context