Re: Delete silently failing.

2023-03-07 Thread Matthew Castrigno
slhs.org> From: Shawn Heisey Sent: Tuesday, March 7, 2023 3:36 PM To: users@solr.apache.org Subject: Re: Delete silently failing. On 3/7/23 12: 58, Matthew Castrigno wrote: > I am having trouble deleting a document by id. > > curl --location --request POST 'x:  8983/solr

Re: Delete silently failing.

2023-03-07 Thread Shawn Heisey
On 3/7/23 12:58, Matthew Castrigno wrote: I am having trouble deleting a document by id. curl --location --request POST 'x:8983/solr/talix/update?commit=true' \ --header 'Content-Type: application/json' \ --data-raw '{'\''delete'\'': ["1E089335-892C-41F6-B767-632EB5361775"]}' When I send a

Re: Delete silently failing.

2023-03-07 Thread Thomas Corthals
These should all be equivalent, but it doesn't hurt to test them all. {“delete”: {“id”: "1E089335-892C-41F6-B767-632EB5361775”}} {“delete”: "1E089335-892C-41F6-B767-632EB5361775”} {“delete”: ["1E089335-892C-41F6-B767-632EB5361775”]} Op di 7 mrt 2023 om 22:25 schreef Walter Underwood : > Is it

Re: Delete silently failing.

2023-03-07 Thread Walter Underwood
Is it supposed to be: {“delete”: {“id”: "1E089335-892C-41F6-B767-632EB5361775”}} wunder Walter Underwood wun...@wunderwood.org https://observer.wunderwood.org/ (my blog) > On Mar 7, 2023, at 1:20 PM, Thomas Corthals wrote: > > Got blindsided by the quotes and didn't notice you already have com

Re: Delete silently failing.

2023-03-07 Thread Thomas Corthals
Got blindsided by the quotes and didn't notice you already have commit=true as a URL parameter. That should already cover my suggestion. Op di 7 mrt 2023 om 22:06 schreef Thomas Corthals : > Hi Matthew, > > There seems to be something strange going on with single quotes and > backslashes around y

Re: Delete silently failing.

2023-03-07 Thread Thomas Corthals
Hi Matthew, There seems to be something strange going on with single quotes and backslashes around your delete command. Best to use double quotes inside a single quoted command argument when sending JSON like this. Maybe you queried too soon, before the change was committed to the index? You can

Delete silently failing.

2023-03-07 Thread Matthew Castrigno
Hello community, I am having trouble deleting a document by id. curl --location --request POST 'x:8983/solr/talix/update?commit=true' \ --header 'Content-Type: application/json' \ --data-raw '{'\''delete'\'': ["1E089335-892C-41F6-B767-632EB5361775"]}' responds with { "responseHeader": {