I followed the documentation i.e.https://www.mageplaza.com/magento-2-module-development/magento-2-indexing.html#run-reindex-by-command to create a custom Indexer. It is visible at the backend.
After this, I want to push this custom index using elastic search so that it can be used in the search. Please guide me on this part.
Rashi