void MultiThreadedAccessThread(object o)
{
var sfs = (SparseFacetedSearcher)o;
Query query = new QueryParser(Lucene.Net.Util.Version.LUCENE_29, "text", new StandardAnalyzer(Lucene.Net.Util.Version.LUCENE_29)).Parse("block*");
for (int i = 0; i < 2000; i++)
{
var hits = sfs.Search(query);
if (6 != hits.Facets.Count()) _errorCount++;
foreach (var hpg in hits.Facets)
{
if (hpg.Name[0] == "us" && hpg.Name[1] == "CCN" && hpg.Name[2] == "politics")
{
if (1 != hpg.Count) _errorCount++;
}
else
if (hpg.Name[0] == "en" && hpg.Name[1] == "BCC" && hpg.Name[2] == "tech")
{
if (1 != hpg.Count) _errorCount++;
}
else
if (hpg.Name[0] == "us" && hpg.Name[1] == "CCN" && hpg.Name[2] == "sport")
{
if (1 != hpg.Count) _errorCount++;
}
else
if (hpg.Name[0] == "en" && hpg.Name[1] == "CCN" && hpg.Name[2] == "tech")
{
if (1 != hpg.Count) _errorCount++;
}
else
{
if (0 != hpg.Count) _errorCount++;
}
if (4 != hits.TotalHitCount) _errorCount++;
}
}
}