Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When i using elasticsearch to search a long field encountered a strange question #8546

Closed
haochun opened this issue Nov 19, 2014 · 2 comments

Comments

@haochun
Copy link

haochun commented Nov 19, 2014

hi,
when i use es to search,i experience a problem.there is a field,type is long,and store as array.like this:
1

but when i use two item in the array to search,one term can search ,but one term could not search any result.like this:
2
3

@haochun haochun changed the title How to search long type field? When i using elasticsearch to search a long field encountered a strange question Nov 19, 2014
@clintongormley
Copy link
Contributor

Hi @haochun

The number 64488939508378000000 is a big integer, not a long. There is currently no support for big integers in Elasticsearch.

Closing in favour of #5683

@haochun
Copy link
Author

haochun commented Nov 26, 2014

@clintongormley i use new Random().nextLong() to generate this number.If so, I can only use the string to replace it is?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants