Install the required dependencies:
'org.apache.solr:solr-solrj:5.5.1'
'org.apache.httpcomponents:httpclient:4.3.6'
'com.ibm.watson.developer_cloud:java-sdk:3.2.0'
The code below assumes you have a Solr collection with documents and you have trained a ranker, otherwise follow this tutorial
pub...