List of integers vs list of long

Hello Folks,

I'm exploring elasticsearch for my project. I had a question about the type. I'm using transport client. I have documents of the following format, where ids and otherids fields are list of long numbers (this is just an example)

{
ids : [100, 200, ..],
otherids: [300, 400..]
}

when I query back, I get a list of integers where I was expecting it to list of longs. any idea, why I'm seeing this behavior ?

(If I query the mapping from curl or postman, I see, its type = long. )

Any suggestions would be helpful.

What does your code look like?

Hi,

Have you defined the mapping as long ?. Can you post the index mapping