I can create a document with a '/' in the ID but I can't delete it

Hi folks,

I tried to PUT a document in elastic index and I used a document ID that's: abc/xyz
so it has a / in it.

It gets created fine. But I'm not able to delete the document with that ID. Probably because the / is considered part of the URL and not a valid id? But then why does elastic allow me to create it in first place? How do I delete this document now?

Appreciate your help!

Thanks,
-S

Welcome!

I think you need to URLEncode the id.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.