Storing fields in the index?

How to store fields in index using JAVA API.

did you mean how to index fields?
If so then pls refer to this my java sample post:
http://elasticsearch-users.115913.n3.nabble.com/Sample-of-Java-API-tc3555729.html

Indexing the field is fine. I want to know know to mark them as stored or
not, like in lucene there is an option to mark the field as stored or not.
Also is there any way to mark the fields as analysed, as we did in lucene?

--
Saurabh Kumar
M.Sc (Mathematics) B.E (Computer Science)
Birla Institute of Technology and Science-Pilani