Lines Matching defs:index

24 package org.opensolaris.opengrok.index;
45 import org.apache.lucene.index.IndexReader;
46 import org.apache.lucene.index.IndexWriter;
47 import org.apache.lucene.index.IndexWriterConfig;
48 import org.apache.lucene.index.IndexWriterConfig.OpenMode;
49 import org.apache.lucene.index.Term;
50 import org.apache.lucene.index.TermEnum;
77 * This class is used to create / update the index databases. Currently we use
78 * one index database per project.
127 * Update the index database for all of the projects. Print progress to
137 * Update the index database for all of the projects
178 * Update the index database for a number of sub-directories
241 File indexDir = new File(config.getDataRootFile(), "index");
307 * Update the content of this index database
335 // index generation, right now it will only happen in the end
342 writer.commit(); // to make sure index exists on the disk
364 IndexReader reader = IndexReader.open(indexDirectory); // open existing index
412 + "'used for timestamping the index database");
417 + "', used for timestamping the index database");
423 * Optimize all index databases
459 * Optimize the index database
514 //TODO below seems only to index "defs" , possible bug ?
555 * Remove a stale file (uidIter.term().text()) from the index database
587 * Add a file to the Lucene index (and generate a xref file)
640 * Check if I should accept this file into the index database
872 * Interrupt the index generation (and the index generation will stop as
889 * index database.
899 * modifications is done to the index database
908 * List all files in all of the index databases
916 * List all files in some of the index databases
948 * Print a listing of all of the files in this index database to stdout.
958 ireader = IndexReader.open(indexDirectory); // open existing index
1028 * @return The index database where the file should be located or null if
1035 File indexDir = new File(config.getDataRootFile(), "index");
1052 logger.warning("Failed to open index '" + indexDir.getAbsolutePath() + "'");
1059 * Get the latest definitions for a file from the index.
1064 * @throws IOException if an error happens when accessing the index
1077 // No index, no definitions...