It seems that ever since solr6, the solrj api package has been changed to
org.apache.solr.client.solrj
that is
*solrserver* is gone ….
from ref guide, demo code goes like this
@Test
void addDocTest(){
HttpSolrClient httpSolrClient = new HttpSolrClient("http://127.0.0.1:8983/solr/mt")
for (int i=0; i< 100; i++){
SolrInputDocument document = new SolrInputDocument()
document.addField("id", RandomUtil.UUID().toLowerCase())
document.addField("name", RandomUtil.UUID().toLowerCase())
httpSolrClient.add(document)
}
httpSolrClient.commit()
}
please note that mt is your standalone solr core.