src/main/java/ch/uzh/ifi/seal/ase/cscc/index/AbstractInvertedIndex.java
public void indexDocument(IndexDocument doc) {
        if (isIndexed(doc)) {
            // do not put identical documents in index twice
//            System.out.println("doc " + doc.getId() + " is already indexed");
            return;
        }
        try {
            serializeIndexDocument(doc);
            addDocToLuceneIndex(doc);
        } catch (IOException e) {
            e.printStackTrace();
            System.exit(1); // exit on IOException
        }
    }
/**
     * Puts an IndexDocument in the index.
     *
     * @param doc document to store in index
     */
Puts an IndexDocument in the index.
@param doc document to store in index
Puts an IndexDocument in the index . @param doc document to store in index
public void indexDocument(IndexDocument doc) {
        if (isIndexed(doc)) {
            return;
        }
        try {
            serializeIndexDocument(doc);
            addDocToLuceneIndex(doc);
        } catch (IOException e) {
            e.printStackTrace();
            System.exit(1); 
        }
    }
public void indexDocument ( IndexDocument doc ) { if ( isIndexed ( doc ) ) { return ; } try { serializeIndexDocument ( doc ) ; addDocToLuceneIndex ( doc ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; System . exit ( 1 ) ; } }
Puts an IndexDocument in the index.
Puts an IndexDocument in the index .
// do not put identical documents in index twice //            System.out.println("doc " + doc.getId() + " is already indexed"); // exit on IOException