public IndexResult Update(string fileName, string text, DocumentIndexOptimizeSetup setup) { var characterIndexResult = _charactersIndex.Update(fileName, text, setup); var numberIndexResult = _numberIndex.Update(characterIndexResult.DocNumber, text, setup); return(Merge(characterIndexResult, numberIndexResult)); }
public IndexResult Update(int recordNumber, string text, DocumentIndexOptimizeSetup setup) { var charachterResult = _charactersIndex.Update(recordNumber, text, setup); var numberResult = _numberIndex.Update(recordNumber, text, setup); return(Merge(charachterResult, numberResult)); }
public IndexResult Rebuild(hOOt.Document document, bool deleteOld, DocumentIndexOptimizeSetup setup) { var characterIndexResult = _charactersIndex.Rebuild(document, deleteOld, setup); var numberIndexResult = _numberIndex.Update(document.DocNumber, document.Text, setup); return(Merge(characterIndexResult, numberIndexResult)); }
public IndexResult Index(int recordNumber, string text, DocumentIndexOptimizeSetup setup) { lock (_gate) { BornOrRessurectIfDead(); UpdateVersion(); return(_documentIndex.Index(recordNumber, text, setup)); } }
public IndexResult Index(hOOt.Document document, bool deleteOld, DocumentIndexOptimizeSetup setup) { lock (_gate) { BornOrRessurectIfDead(); UpdateVersion(); return(_documentIndex.Index(document, deleteOld, setup)); } }
public void Optimize(DocumentIndexOptimizeSetup setup) { lock (_gate) { BornOrRessurectIfDead(); UpdateVersion(); _documentIndex.Optimize(setup); } }
public IndexResult Update(string fileName, string text, DocumentIndexOptimizeSetup setup) { lock (_gate) { BornOrRessurectIfDead(); UpdateVersion(); return(_documentIndex.Update(fileName, text, setup)); } }
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(string fileName, string text, DocumentIndexOptimizeSetup setup) { if (!_isAlive) { return(new IndexResult()); } UpdateLastUsedToken(); var indexResult = _hoot.UpdateIndex(fileName, text); Optimize(setup); return(indexResult); }
public IndexResult Index(hOOt.Document document, bool deleteOld, DocumentIndexOptimizeSetup setup) { if (!_isAlive) { return(new IndexResult()); } UpdateLastUsedToken(); var indexResult = _hoot.Index(document, deleteOld); Optimize(setup); return(indexResult); }
public IndexResult Rebuild(hOOt.Document document, bool deleteOld, DocumentIndexOptimizeSetup setup) { if (!_isAlive) { return(new IndexResult()); } UpdateLastUsedToken(); if (document.DocNumber > _hoot.DocumentCount - 1) { return(new IndexResult()); } var indexResult = _hoot.UpdateIndex(document, deleteOld); Optimize(setup); return(indexResult); }
public void Optimize(DocumentIndexOptimizeSetup setup) { if (!_isAlive) { return; } _isOptimized = false; if (!setup.ShouldOptimize) { return; } UpdateLastUsedToken(); if (!setup.ShouldDefer) { DoOptimize(setup.ShouldFreeMemory); return; } if (_optimizeHint.Advice()) { DoOptimize(setup.ShouldFreeMemory); } }
public void Optimize(DocumentIndexOptimizeSetup setup) { _charactersIndex.Optimize(setup); _numberIndex.Optimize(setup); }