When indexing in Solr, which of the following code snippets can significantly improve indexing performance? (multiple choice)

When indexing in Solr, which of the following code snippets can significantly improve indexing performance? (multiple choice)
A . lbClient.setRequestWriter (new BinaryRequestWriter());
B . if (updateRequest.getDocumentsMap().size() >= 10000) {
cloudSolrClient.request (updateRequest, collName);
updateRequest.clear();
}

C . if (updateRequest.getDocuments().size() >= 1000) {
cloudSolrClient.request (updateRequest, collName);
updateRequest.clear();
}
D . SolrlnputDocument doc = new SolrlnputDocument();
doc.addField ("id", i.toString());
doc.addField ("name", "Zhang San" + i);
doc.addField ("features", "test" + );
doc.addField ("price", (float) i * 1.01);

cloudSolrClient.add (doc);
cloudSolrClient.commit();

Answer: AB

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments