Example #1
0
        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);
        }
Example #2
0
 public IndexResult Update(int recordNumber, string text)
 {
     lock (_gate)
     {
         if (!_isAlive)
         {
             return(new IndexResult());
         }
         UpdateToken();
         return(_hoot.UpdateExistingIndex(recordNumber, text));
     }
 }