Example #1
0
 protected override void Search(IList <AtomicReaderContext> leaves, Weight weight, ICollector collector)
 {
     // TODO: shouldn't we AssertingCollector.wrap(collector) here?
     base.Search(leaves, AssertingWeight.Wrap(random, weight), collector);
 }
Example #2
0
 public override Weight CreateWeight(IndexSearcher searcher)
 {
     return(AssertingWeight.Wrap(new Random(Random.Next()), @in.CreateWeight(searcher)));
 }
Example #3
0
 public override Weight CreateWeight(IndexSearcher searcher)
 {
     return(AssertingWeight.Wrap(new J2N.Randomizer(random.NextInt64()), @in.CreateWeight(searcher)));
 }