HttpServer based java server which indexes text documents and returns word count using lucene