Searching in patch/spark