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
To: users@solr.apache.org Subject: deleteById for multiple ids with route parameter PHISH ALERT! CHECK VALIDITY IF CLICKING, SHARING, RESPONDING 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 for multiple ids with route parameter

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

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

deleteById for multiple ids with route parameter

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