Query Parser in elastic Search

How to use query parser of elastic search in JAVA?