Class DiversifyingNearestChildrenKnnCollectorManager

  • All Implemented Interfaces:
    KnnCollectorManager

    public class DiversifyingNearestChildrenKnnCollectorManager
    extends Object
    implements KnnCollectorManager
    DiversifyingNearestChildrenKnnCollectorManager responsible for creating DiversifyingNearestChildrenKnnCollector instances.
    • Constructor Detail

      • DiversifyingNearestChildrenKnnCollectorManager

        public DiversifyingNearestChildrenKnnCollectorManager​(int k,
                                                              BitSetProducer parentsFilter)
        Constructor
        Parameters:
        k - - the number of top k vectors to collect
        parentsFilter - Filter identifying the parent documents.
    • Method Detail

      • newCollector

        public org.apache.lucene.search.join.DiversifyingNearestChildrenKnnCollector newCollector​(int visitedLimit,
                                                                                                  LeafReaderContext context)
                                                                                           throws IOException
        Return a new DiversifyingNearestChildrenKnnCollector instance.
        Specified by:
        newCollector in interface KnnCollectorManager
        Parameters:
        visitedLimit - the maximum number of nodes that the search is allowed to visit
        context - the leaf reader context
        Throws:
        IOException