search plugin optimization