Getting document by document id


(mramaprasad) #1

I have an indexed documents to elastic search with "/" (like 13.89/sdc.2002.10009) as doc id. When I try to get by id

curl -XGET 'http://localhost:9200/csv1/testl/13.89/sdc.2002.10009'
Gives me error No handler found for uri [...

How do we get doumnets by id for these documents?


(David Pilato) #2

Try to encode / with %xx (i don't recall what xx should be).

Might work but unsure...


(Mark Walkom) #3

Or try escaping the last backslash - curl -XGET 'http://localhost:9200/csv1/testl/13.89\/sdc.2002.10009'

Ideally though, that's not a char you should be using in an ID.


(mramaprasad) #4

Encoding with %2F worked. Thanks for all the responses.


(system) #5