Made Java server get results from Lucene.

Changed API call to a POST that gives
params as a JSON object.