First of all, how do you index transaction which isn't exist on your device? Block which contain transactions already pruned/removed.
During IBD, can't you index the transactions and then remove them?
Do you mean you want to create the index (TX ID) without storing the content (the transaction itself)? I think it's possible, but i don't see any practical usage.