A search-engine implementation in Java