Re: deleteById for multiple ids with route parameter

2023-05-12 Thread Shawn Heisey
On 5/12/23 05:15, Anjali Maurya 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. This is the code line that actually sends the request to Solr. The para

Re: deleteById for multiple ids with route parameter

2023-05-12 Thread Susmit Shukla
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 wrote: > Thanks, Susmit for the solution. > > I'm having trouble understanding "req.process(client, collection)" in the >

Re: deleteById for multiple ids with route parameter

2023-05-12 Thread Anjali Maurya
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 wrote: > yes, route as well as id parameter is required if the col

Re: deleteById for multiple ids with route parameter

2023-05-11 Thread Susmit Shukla
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 re

Re: deleteById for multiple ids with route parameter

2023-05-11 Thread Susmit Shukla
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 re

Re: deleteById for multiple ids with route parameter

2023-05-11 Thread Walter Underwood
No, Solr Cloud automatically routes it to the correct shard. wunder > On May 11, 2023, at 6:41 PM, Anjali Maurya > 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 > wrote: > >

Re: deleteById for multiple ids with route parameter

2023-05-11 Thread Anjali Maurya
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 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

RE: deleteById for multiple ids with route parameter

2023-05-09 Thread Subhasis Patra
Yes Anjali, I have used UpdateRequest. deleteById (List) . I don’t face any issues. Not sure what you mean when you say route value. Id is unique. Thanks Subhasis Patra 240-755-2601 subhasis.pa...@e2open.com -Original Message- From: Anjali Maurya Sent: Sunday, May 7, 2023 11:56 PM To

Re: deleteById for multiple ids with route parameter

2023-05-09 Thread Walter Underwood
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 Un