Need curl/kibana command which returns "same ids" which are present in 2 different indexes

Please edit your post and remove the formatting on the plain text, it's very difficult to read as it is.