List of integers vs list of long


(Sree2k) #1

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.


(David Pilato) #2

What does your code look like?


(SK) #3

Hi,

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


(system) #5

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