Exemple #1
0
        public void TrailingGap()
        {
            Hits a = TestIndex.SearchHeadRevision(PathQuery("/general/**"));
            Hits b = TestIndex.SearchHeadRevision(PathQuery("/general/"));

            Assert.That(a.Length() == b.Length());

            HashSet <string> aa = new HashSet <string>();
            HashSet <string> bb = new HashSet <string>();

            for (int i = 0; i < a.Length(); ++i)
            {
                aa.Add(a.Doc(i).Get(FieldName.Id));
                bb.Add(b.Doc(i).Get(FieldName.Id));
            }
            Assert.That(aa.SetEquals(bb), Is.True);
        }