/** * creates the final term code to offset file, and the lexicon hash if enabled. */ protected void createLexidFile() { LexiconBuilder.optimise(destIndex, "lexicon"); }
/** Creates a lexicon hash for the specified index * @param index IndexOnDisk to make the LexiconHash the lexicoin * @deprecated use optimise instead */ public static void createLexiconHash(final IndexOnDisk index) throws IOException { optimise(index, "lexicon"); } /** optimise the lexicon */
/** optimise the lexicon */ public void optimiseLexicon() { optimise(index, defaultStructureName); }
/** Creates a lexicon index for the specified index * @param index IndexOnDisk to make the lexicon index for * @deprecated use optimise instead */ public static void createLexiconIndex(IndexOnDisk index) throws IOException { optimise(index, "lexicon"); }
/** Hook method, called when the inverted index is finished - ie the lexicon is finished */ protected void finishedInvertedIndexBuild() { if (invertedIndexBuilder != null) try{ invertedIndexBuilder.close(); } catch (IOException ioe) { logger.warn("Problem closing inverted index builder", ioe); } LexiconBuilder.optimise(currentIndex, "lexicon"); } }
/** Hook method, called when the inverted index is finished - ie the lexicon is finished */ protected void finishedInvertedIndexBuild() { if (invertedIndexBuilder != null) try{ invertedIndexBuilder.close(); } catch (IOException ioe) { logger.warn("Problem closing inverted index builder", ioe); } LexiconBuilder.optimise(currentIndex, "lexicon"); }
optimise(index, structureName);
LexiconBuilder.optimise(newIndex, "lexicon");
LexiconBuilder.optimise(destIndex, "lexicon"); destIndex.flush(); } catch(IOException ioe) {
LexiconBuilder.optimise(newIndex, "lexicon");
LexiconBuilder.optimise(index, "lexicon"); index.flush();
LexiconBuilder.optimise(index, "lexicon"); index.flush();
LexiconBuilder.optimise(index, "lexicon"); index.flush();