Fun fact, there's already an API, but it's just not well documented, and the path uses a v0 instead of a v1. This should indicate that it's not fully supported, but just to unblock you:
First I need to thank both of you for the blazing fast replies. Very exceptional! And thanks Sean for providing a solution even if its a "not fully supported" API, this will help us.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.