a small lucene implemetion