ElasticSearch within a document with JavaAPI

All
I have a document stored in a certain location. Is there an ES JavaAPI that I can use to search against my document? Is there an example? How will I create index from the words of my document?
Thanks