Add search index for bugs and develop a way to make search index generate fields