private void CheckHits(ScoreDoc[] hits, int expectedCount, IndexSearcher searcher)
{
Assert.AreEqual(expectedCount, hits.Length, "total results");
for (int i = 0; i < hits.Length; i++)
{
if (i < 10 || (i > 94 && i < 105))
{
Documents.Document d = searcher.Doc(hits[i].Doc);
Assert.AreEqual(Convert.ToString(i), d.Get(ID_FIELD), "check " + i);
}
}
}
}