The EmbeddedSolrServer runs within the same process as a standalone Java application, it's not the sort of thing you'd add to Solr running in the usual (standalone web application) way. You can think of it as an alternative to directly using the Lucene API in a custom Java application. It's not something you would add on to and access from the standard web application.
It is possible to perform bulk updates of documents: https://solr.apache.org/guide/solr/latest/indexing-guide/indexing-with-update-handlers.html so you should be able to avoid "an HTTP call per-document" if that is your concern. It may even be easier to update your indexing process to add/modify the new fields rather than writing a custom plugin. HTH! On Wed, Nov 30, 2022 at 2:33 AM Nagarajan Muthupandian < nagarajan.muthupand...@oracle.com> wrote: > Thanks Shawn and Eric, > > POC would be to add a function in the plugin.. which would query all the > documents locally (Say 100+ Million Documents) and update 1 or 2 fields > with a particular value. > > As the plugin would be local to this core.. wanted to avoid HTTP calls. > > Say if I am in a solr container.. will Embedded server create another > container locally..? Or will be it like thin client to interact with > container similar to HTTP. > > Regards > Rajan > > From: Shawn Heisey <apa...@elyograg.org> > Date: Wednesday, 30 November 2022 at 2:07 AM > To: users@solr.apache.org <users@solr.apache.org> > Subject: [External] : Re: Querying Solr Locally through Java API without > using HttpClient > On 11/29/22 08:59, Nagarajan Muthupandian wrote: > > Wanted to check if there is any Java API available to query solr locally > (Including Pagination) without using the Httpclient. > > The Java API (known as SolrJ) uses either Apache httpclient or Jetty > httpclient, depending on which client object you choose. Solr is > designed to use HTTP for access. > > As Eric said, you can use EmbeddedSolrServer and have Solr actually > running inside your Java software with no HTTP availability. > > We do not recommend running the embedded server in production. As it > has no network connectivity of any kind, it has no redundancy or high > availability features. > > Thanks, > Shawn >