Esempio n. 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);
 }
Esempio n. 2
0
 public override Weight CreateWeight(IndexSearcher searcher)
 {
     return(AssertingWeight.Wrap(new Random(Random.Next()), @in.CreateWeight(searcher)));
 }
Esempio n. 3
0
 public override Weight CreateWeight(IndexSearcher searcher)
 {
     return(AssertingWeight.Wrap(new J2N.Randomizer(random.NextInt64()), @in.CreateWeight(searcher)));
 }