Use of janusgraph/SolrIndex for index queries.


I have been struggling with this a while. I am currently using the JanusGraph.indexQuery(...) function to query my Solr backend, but this is proving to be expensive on performance when I fetch the list of IDs from the query to apply to a gremlin command. I would like to use the SolrIndex function as it returns a stream of IDs which I can then use with no pre-processing necessary. How do I go about using it? There doesn't seem to be any examples posted anywhere (I've been looking for weeks now).

P.S. I moved this from janusgraph-dev as it seems more in line with other questions asked here.