Elastic search working

hai i would like to know the steps after installing the elastic search.

Usage: service.bat install|remove|start|stop|manager [SERVICE_ID]

i want to know it can be done by jar installing in the project.
i want to get the code to creating index of a url and the search json for searching the selected text field.