This is the method signature process(SolrClient client, String collection)
input is solr client and the solr collection name On Fri, May 12, 2023 at 4:17 AM Anjali Maurya <anjali.maury...@indiamart.com.invalid> wrote: > Thanks, Susmit for the solution. > > I'm having trouble understanding "req.process(client, collection)" in the > solution. Could you please provide an explanation? It would be beneficial. > > On Fri, May 12, 2023 at 10:30 AM Susmit Shukla <shukla.sus...@gmail.com> > wrote: > > > yes, route as well as id parameter is required if the collection is > sharded > > on any other field than the unique id. This feature was broken in solr > > prior to 8.10. It was fixed with this jira - > > https://issues.apache.org/jira/browse/SOLR-8889. > > > > Multiple ids with route can be deleted by using update request object > > directly > > > > UpdateRequest req = *new* UpdateRequest(); > > > > for(solr docs) { > > > > req.deleteById(docId, route); //added to hashmap internally > > > > } > > > > req.process(client, collection) > > > > On Thu, May 11, 2023 at 6:58 PM Walter Underwood <wun...@wunderwood.org> > > wrote: > > > > > No, Solr Cloud automatically routes it to the correct shard. > > > > > > wunder > > > > > > > On May 11, 2023, at 6:41 PM, Anjali Maurya > > > <anjali.maury...@indiamart.com.INVALID> wrote: > > > > > > > > But it needs a route parameter to find the right shard from where we > > need > > > > to delete the document. > > > > > > > > On Tue, May 9, 2023 at 11:24 PM Walter Underwood < > > wun...@wunderwood.org> > > > > wrote: > > > > > > > >> Leave off the routing and send multiple IDs. Solr Cloud will route > > then > > > to > > > >> the correct shards for you. This is just as fast as Solr Cloud > reading > > > the > > > >> route parameter and sending it to the right shard. The whole point > of > > > Solr > > > >> Cloud is that it manages shards and replicas for you. > > > >> > > > >> wunder > > > >> Walter Underwood > > > >> wun...@wunderwood.org > > > >> http://observer.wunderwood.org/ (my blog) > > > >> > > > >>> On May 9, 2023, at 2:24 AM, Anjali Maurya > > > >> <anjali.maury...@indiamart.com.INVALID> wrote: > > > >>> > > > >>> Hi all, > > > >>> > > > >>> We are using solr cloud (version 8.10). We are using deleteById > which > > > >> takes > > > >>> the id and route value to delete the id from the specific shard. > > > >> deleteById > > > >>> takes only one value of id. > > > >>> > > > >>> I want to ask if there is any way to send multiple ids to > deleteById > > > with > > > >>> route parameter and if can we send multiple update requests to one > > solr > > > >>> request. > > > >> > > > >> > > > > > > > > >