Java, Lucene and information retrieval