Lines Matching defs:index
23 package org.opensolaris.opengrok.index;
42 import org.apache.lucene.index.*;
43 import org.apache.lucene.index.IndexWriterConfig.OpenMode;
69 * This class is used to create / update the index databases. Currently we use
70 * one index database per project.
121 * Update the index database for all of the projects. Print progress to
132 * Update the index database for all of the projects
162 log.log(Level.SEVERE, "Problem updating lucene index database: ", e);
170 * Update the index database for a number of sub-directories
208 log.log(Level.WARNING, "An error occured while updating index", e);
221 log.log(Level.SEVERE, "An error occured while updating index", e);
233 File indexDir = new File(env.getDataRootFile(), "index");
296 * Update the content of this index database
327 //TODO we might need to add writer.commit after certain phases of index generation, right now it will only happen in the end
333 writer.commit(); // to make sure index exists on the disk
355 IndexReader reader = DirectoryReader.open(indexDirectory); // open existing index
370 //TODO above and below probably breaks removing old docIDs from index ... REWRITE !
428 log.log(Level.WARNING, "Failed to set last modified time on ''{0}'', used for timestamping the index database.", timestamp.getAbsolutePath());
432 log.log(Level.WARNING, "Failed to create file ''{0}'', used for timestamping the index database.", timestamp.getAbsolutePath());
439 * Optimize all index databases
464 log.log(Level.SEVERE, "Problem updating lucene index database: ", e);
473 * Optimize the index database
485 log.info("Optimizing the index ... ");
500 log.log(Level.SEVERE, "ERROR: optimizing index: {0}", e);
523 log.info("Generating spelling suggestion index ... ");
526 //TODO below seems only to index "defs" , possible bug ?
572 * Remove a stale file (uidIter.term().text()) from the index database (and
608 * Add a file to the Lucene index (and generate a xref file)
670 * Check if I should accept this file into the index database
885 * Interrupt the index generation (and the index generation will stop as
902 * index database.
912 * modifications is done to the index database
921 * List all files in all of the index databases
930 * List all files in some of the index databases
962 * List all of the files in this index database
972 ireader = DirectoryReader.open(indexDirectory); // open existing index
989 log.log(Level.WARNING, "An error occured while closing index reader", e);
1055 log.log(Level.WARNING, "An error occured while closing index reader", e);
1065 * @return The index database where the file should be located or null if it
1072 File indexDir = new File(env.getDataRootFile(), "index");
1087 log.log(Level.SEVERE, "Failed to open index: {0}", indexDir.getAbsolutePath());
1094 * Get the latest definitions for a file from the index.
1099 * @throws IOException if an error happens when accessing the index
1112 // No index, no definitions...