Java implementation of search engine indexer