145146147148149150151152
finally { close(writer); } indexSpellCheck(id); } if(getDocumentCount(id)==before) return new IndexResultImpl(0,0,1); return new IndexResultImpl(0,1,0); }
175176177178179180181
indexSpellCheck(id); } return new IndexResultImpl(0,0,doccount); }
291292293294295296297298299300
finally { close(writer); } indexSpellCheck(id); } if(getDocumentCount(id)==before) return new IndexResultImpl(0,0,1); return new IndexResultImpl(0,1,0); //throw new SearchException("url indexing not supported"); }
359360361362363364365
} indexSpellCheck(id); } int removes=countBefore-countAfter; return new IndexResultImpl(removes,0,0); }
469470471472473474475
} indexSpellCheck(id); } int inserts=countNew-countExisting; return new IndexResultImpl(0,inserts,countAdd-inserts); }
488489490491492493494
int count=0; for(int i=0;i<indexes.length;i++) { count+=getDocumentCount(indexes[i].getId()); } ResourceUtil.removeChildrenEL(collectionDir); return new IndexResultImpl(count,0,0); }
499500501502503504505
int count=0; for(int i=0;i<indexes.length;i++) { count+=getDocumentCount(indexes[i].getId()); } ResourceUtil.removeEL(collectionDir, true); return new IndexResultImpl(count,0,0); }
506507508509510511512
@Override protected IndexResult _deleteIndex(String id) throws SearchException { int count=getDocumentCount(id); ResourceUtil.removeEL(_getIndexDirectory(id,true), true); return new IndexResultImpl(count,0,0); }