I am confused with the long datatype.
I have a document of type "posts":
Here in this "can_view" attributes was saving the ids of the users who can
view the posts,and data which was stored was like :
title:"my post for all"
like here some ids are stored as int and some as string, and it was
working fine. I did'nt get how was this happening. as java is strict
language,so it should not allow the int saved as string(int number with
and now i need to change the data, instead of saving the ids, i have to
store the names, but its giving the exception
"MapperParsingException[Failed to parse [can_see]]; nested:
NumberFormatException[For input string: "narinder"]; "
And moreover we are having a plan to store mixed datatypes in the single
level array, is that possible?? please help me through.