Skip to content

Commit 0c70ffb

Browse files
committed
chore: update solr configuratino with builder‘
Signed-off-by: Otavio Santana <otaviopolianasantana@gmail.com>
1 parent d196e36 commit 0c70ffb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jnosql-solr/src/main/java/org/eclipse/jnosql/databases/solr/communication/SolrDocumentConfiguration.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ public SolrDocumentManagerFactory apply(Settings settings) throws NullPointerExc
5959

6060
boolean automaticCommit = settings.getOrDefault(SolrDocumentConfigurations.AUTOMATIC_COMMIT, true);
6161

62-
final Http2SolrClient solrClient = new Http2SolrClient.Builder(host).build();
63-
solrClient.setParser(new XMLResponseParser());
62+
final Http2SolrClient solrClient = new Http2SolrClient.Builder(host)
63+
.withResponseParser(new XMLResponseParser()).build();
6464
return new SolrDocumentManagerFactory(solrClient, automaticCommit);
6565

6666
}

0 commit comments

Comments
 (0)