Is it possible to recover .idx from .rec? I have a data that is missing .idx and I need to recover it

Is it possible to recover .idx from .rec? I have a data that is missing .idx and I need to recover it.