public IndexResult Update(int recordNumber, string text, DocumentIndexOptimizeSetup setup) { if (!_isAlive) { return(new IndexResult()); } UpdateLastUsedToken(); var indexResult = _hoot.UpdateExistingIndex(recordNumber, text); Optimize(setup); return(indexResult); }
public IndexResult Update(int recordNumber, string text) { lock (_gate) { if (!_isAlive) { return(new IndexResult()); } UpdateToken(); return(_hoot.UpdateExistingIndex(recordNumber, text)); } }