On 4/8/2019 11:00 PM, vishal patel wrote:
Sorry my mistake there is no class of that.

I have add the data using below code.
CloudSolrServer cloudServer = new CloudSolrServer(zkHost);
cloudServer.setDefaultCollection("actionscomments");
cloudServer.setParallelUpdates(true);
List<SolrInputDocument> docs = new ArrayList<>();
SolrInputDocument solrDocument = new SolrInputDocument();
solrDocument.addField("id", "123");
docs.add(solrDocument);
cloudServer.add(docs, 1000);

Side note: This code is not using SolrJ 8.0.0. CloudSolrServer was deprecated in version 5.0.0 and completely removed in version 6.0.0. I'm surprised this code even works at all with Solr 8.0.0 -- you need to upgrade to SolrJ 8 and use CloudSolrClient.

How long does the system remain at 100 percent CPU when you index that single document that only has one field? If it's longer than a very small fraction of a second, then my guess is that it's cache warming queries using the CPU, not the indexing itself.

How many CPU cores are at 100 percent? Is it just one, or multiple? It would be odd for it to be multiple, unless there is other activity going on at the same time.

Thanks,
Shawn

Reply via email to