By request of the client I need to send information from a heavy forwarder to an indexer A, if indexer A goes down the information must reach indexer B and when indexer A is back online the heavy forwarder must send the information back to the indexer A.
The priority must be in indexer A I need to know how to tell the heavy forwarder that when indexer A is online it sends the data to indexer A.
You're kind of replicating the main feature of indexer clustering. If you put indexer A and indexer B into a cluster then they'll each have a copy of all data regardless of where the data was sent. Also, a search will find the data in either indexer.
It's possible to tell a HF to send data to two indexers, but it's difficult (impossible?) to tell it to only use B if A is unavailable. Indeed, if both indexers are not available a forwarder will refuse to send to either one.
--- If this reply helps you, an upvote would be appreciated.