dsmiley commented on code in PR #3708:
URL: https://github.com/apache/solr/pull/3708#discussion_r2392118113


##########
solr/core/src/test/org/apache/solr/search/TestIndexSearcher.java:
##########
@@ -421,9 +422,13 @@ public void run() {
   }
 
   private void addDummyDoc(SolrCore core) throws Exception {
-    DirectSolrConnection connection = new DirectSolrConnection(core);
-    SolrRequestHandler handler = core.getRequestHandler("/update");
-    connection.request(handler, null, adoc("id", "1"));
+    EmbeddedSolrServer server = new EmbeddedSolrServer(core);
+
+    SolrInputDocument doc = new SolrInputDocument();
+    doc.addField("id", "1");

Review Comment:
   see `sdoc` for conciseness.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to