search function added using sunspot