How to quering long type data

Hello all,
I am trying to query to a long type data but its seems that its doesn't work, for example if the number :1.5035830264843164 is set to a long, and i am trying to query that field with the "get" func. its giving me:
{
"took": 3,
"timed_out": false,
"_shards": {
"total": 5,
"successful": 5,
"failed": 0
},
"hits": {
"total": 0,
"max_score": null,
"hits":
}
}

Why is that and how can i query long type fields?
thanks!

I am not sure I understand the question or the problem. If you store something as a long, why do you want to query it as a float? Also please provide full reproductions, so people can follow your examples more easily, I have no idea what the query you did looked like (an exact query will likely not match, a range query however might have been).

1 Like

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