(self, results)
Appends hits from 'results' (that are not already in this
        results object) to the end of these results.

        :param results: another results object.
Appends hits from 'results' (that are not already in this
        results object) to the end of these results.
Appends hits from results ( that are not already in this results object ) to the end of these results .
def extend(self, results):
        """Appends hits from 'results' (that are not already in this
        results object) to the end of these results.

        :param results: another results object.
        """

        docs = self.docs()
        for item in results.top_n:
            if item[1] not in docs:
                self.top_n.append(item)
        self.docset = docs | results.docs()
def extend ( self , results ) : docs = self . docs ( ) for item in results . top_n : if item [ 1 ] not in docs : self . top_n . append ( item ) self . docset = docs | results . docs ( )