src/retrieval based query topic analysis/src/edu/virginia/cs/index/Indexer.java
public void createIndex(String indexPath, String filename) {
        try {
            FileInputStream fis = new FileInputStream(filename);
            DataHandler handler = new DataHandler(indexPath);
            saxParser.parse(fis, handler);
            handler.finish();
        } catch (SAXException | IOException ex) {
            Logger.getLogger(Indexer.class.getName()).log(Level.SEVERE, null, ex);
        }
    }
/**
     * Start creating the lucene index.
     *
     * @param indexPath
     * @param filename
     */
Start creating the lucene index.
@param indexPath
@param filename
Start creating the lucene index . @param indexPath @param filename
public void createIndex(String indexPath, String filename) {
        try {
            FileInputStream fis = new FileInputStream(filename);
            DataHandler handler = new DataHandler(indexPath);
            saxParser.parse(fis, handler);
            handler.finish();
        } catch (SAXException | IOException ex) {
            Logger.getLogger(Indexer.class.getName()).log(Level.SEVERE, null, ex);
        }
    }
public void createIndex ( String indexPath , String filename ) { try { FileInputStream fis = new FileInputStream ( filename ) ; DataHandler handler = new DataHandler ( indexPath ) ; saxParser . parse ( fis , handler ) ; handler . finish ( ) ; } catch ( SAXException | IOException ex ) { Logger . getLogger ( Indexer . class . getName ( ) ) . log ( Level . SEVERE , null , ex ) ; } }
Start creating the lucene index.
Start creating the lucene index .