Lines Matching defs:index

23 package org.opensolaris.opengrok.index;
48 import org.apache.lucene.index.DirectoryReader;
49 import org.apache.lucene.index.Fields;
50 import org.apache.lucene.index.IndexReader;
51 import org.apache.lucene.index.IndexWriter;
52 import org.apache.lucene.index.IndexWriterConfig;
53 import org.apache.lucene.index.IndexWriterConfig.OpenMode;
54 import org.apache.lucene.index.IndexableField;
55 import org.apache.lucene.index.MultiFields;
56 import org.apache.lucene.index.Term;
57 import org.apache.lucene.index.Terms;
58 import org.apache.lucene.index.TermsEnum;
83 * This class is used to create / update the index databases. Currently we use
84 * one index database per project.
119 public static final String INDEX_DIR="index";
145 * Update the index database for all of the projects. Print progress to
156 * Update the index database for all of the projects
186 LOGGER.log(Level.SEVERE, "Problem updating lucene index database: ", e);
194 * Update the index database for a number of sub-directories
232 LOGGER.log(Level.WARNING, "An error occured while updating index", e);
245 LOGGER.log(Level.SEVERE, "An error occured while updating index", e);
311 * Update the content of this index database
347 writer.commit(); // to make sure index exists on the disk
368 IndexReader reader = DirectoryReader.open(indexDirectory); // open existing index
443 String purpose = "used for timestamping the index database.";
459 * Optimize all index databases
485 "Problem updating lucene index database: ", e);
494 * Optimize the index database
506 LOGGER.info("Optimizing the index ... ");
522 LOGGER.log(Level.SEVERE, "ERROR: optimizing index: {0}", e);
562 * Remove a stale file (uidIter.term().text()) from the index database (and
600 * Add a file to the Lucene index (and generate a xref file)
650 * closed automatically by the index writer once it's done with them, but
669 * Check if I should accept this file into the index database
897 * Interrupt the index generation (and the index generation will stop as
914 * index database.
924 * modifications is done to the index database
933 * List all files in all of the index databases
942 * List all files in some of the index databases
974 * List all of the files in this index database
984 ireader = DirectoryReader.open(indexDirectory); // open existing index
1002 LOGGER.log(Level.WARNING, "An error occured while closing index reader", e);
1069 LOGGER.log(Level.WARNING, "An error occured while closing index reader", e);
1079 * @return The index database where the file should be located or null if it
1101 LOGGER.log(Level.SEVERE, "Failed to open index: {0}", indexDir.getAbsolutePath());
1108 * Get the latest definitions for a file from the index.
1113 * @throws IOException if an error happens when accessing the index
1129 // No index, no definitions...