I think it was my mistake! The issue is solved. It is storing as array only.
BTW, do you know how can I get a value from an array matching a key? I mean, I am storing some values in index, for which I have ids, say department id. I have a list/master of department, where the id->department name is available. I need to store the department name in the index along with department id.
I tried a few filters like, translate and a couple of others, nothing works man.. Kind of stuck up on this since a few hours now !!
Your help will be great !