예제 #1
0
        public virtual void TestFirstResultsPage()
        {
            TopDocsCollector <ScoreDoc> tdc = DoSearch(15);

            Assert.AreEqual(10, tdc.GetTopDocs(0, 10).ScoreDocs.Length);
        }
예제 #2
0
        public virtual void TestGetAllResults()
        {
            TopDocsCollector <ScoreDoc> tdc = DoSearch(15);

            Assert.AreEqual(15, tdc.GetTopDocs().ScoreDocs.Length);
        }
 public virtual TopDocs GetTopDocs()
 {
     return(Collector.GetTopDocs());
 }