public boolean detectAndIndex(String text, String url) {
        boolean isNearDuplicate = isNearDuplicate(text);
        if (neardupLog != null && isNearDuplicate) {
            neardupLog.printf("%s\n", url);
        }
        insert(url, text);
        return isNearDuplicate;
    }
Builds a "index" of near-duplicate pages using locality-sensitive hashing.

@author aeciosantos
ache/src/main/java/achecrawler/minhash/DuplicatePageIndexer.java