public void performMultiWayMerge() throws IOException { super.performMultiWayMerge(); String structureName = "inverted"; currentIndex.setIndexProperty("index."+structureName+".blocks", String.valueOf(this.BLOCK_SIZE)); currentIndex.setIndexProperty("index."+structureName+".blocks.max", String.valueOf(this.MAX_BLOCKS)); currentIndex.flush(); } }
currentIndex.flush(); } catch (IOException ioe) { logger.warn("Problem flushin index", ioe);
this.finishedInvertedIndexBuild(); try{ currentIndex.flush(); } catch (IOException ioe) { logger.error("Cannot flush index: ", ioe);
index.flush(); } catch(IOException ioe) { logger.error("IOException while creating optimising lexicon called " + structureName, ioe);
newIndex.flush();
destIndex.flush(); } catch(IOException ioe) { logger.error("IOException while merging lexicons.", ioe);
oos.close(); index.setIndexProperty("index."+structureName+".bsearchshortcut", "charmap"); index.flush();
destIndex.flush();
destIndex.flush();
index.setIndexProperty("index."+destinationStructure+".fields.count", ""+fieldCount ); index.setIndexProperty("index."+destinationStructure+".fields.names", index.getIndexProperty("index."+sourceStructure+".fields.names", "")); index.flush();//save changes
currentIndex.flush(); } catch (IOException ioe) { logger.error("Problem flushing changes to index", ioe);
System.gc(); try { currentIndex.flush(); } catch (IOException ioe) { logger.error("Could not flush index properties: ", ioe);
destIndex.flush();