add snippet search support