Hmm. That doesn’t seem consistent with the format change added in SOLR-5980, 
where each ID can have a _route_ attribute.

{ "id":"ID" , "_route_":"route”}

https://issues.apache.org/jira/browse/SOLR-5890?focusedCommentId=14234208&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-14234208

wunder
Walter Underwood
wun...@wunderwood.org
http://observer.wunderwood.org/  (my blog)

> On May 25, 2023, at 12:19 AM, Thomas Corthals <tho...@klascement.net> wrote:
> 
> Hi Walter
> 
> Deleting multiple IDs at once with JSON is mentioned here:
> https://solr.apache.org/guide/solr/latest/indexing-guide/indexing-with-update-handlers.html#sending-json-update-commands
> 
> Or a list of document IDs:
>> 
>> { "delete":["id1","id2"] }
>> 
>> 
> Thomas
> 
> Op wo 24 mei 2023 om 22:23 schreef Walter Underwood <wun...@wunderwood.org>:
> 
>> It works! Thanks so much.
>> 
>> I’m using XML update format because the JSON format for sending multiple
>> IDs for deletion is not documented anywhere I could find. It was easier to
>> just generate XML instead of continuing to search for documentation.
>> 
>> This does the trick:
>> 
>> <delete><id
>> route="shard25_2">datalake_FPD_163298_3RGR-V090-006H-40F0-00000-00</id></delete>
>> 
>> wunder
>> Walter Underwood
>> wun...@wunderwood.org
>> http://observer.wunderwood.org/  (my blog)
>> 

Reply via email to