What is the purpose of the index?
It is nowhere updated and basically adds a constant 1-valued field to each output tuple.