public override void Run()
{
try
{
long totHits = 0;
long totSearch = 0;
long stopAt = Environment.TickCount + OuterInstance.RUN_TIME_MSEC;
while (Environment.TickCount < stopAt && !Failed.Get())
{
s.Search(new TermQuery(new Term("body", "aaa")), col);
totHits += col.TotalHits;
s.Search(new TermQuery(new Term("body", "bbb")), col);
totHits += col.TotalHits;
totSearch++;
}
Assert.IsTrue(totSearch > 0 && totHits > 0);
NetSearch.AddAndGet(totSearch);
}
catch (Exception exc)
{
Failed.Set(true);
throw new Exception(exc.Message, exc);
}
}
}