def __init__(
        self,
        client,
        q,
        fq=None,
        fields='*',
        pagesize=100,
        transformer=SOLRRecordTransformer(),
    ):
        """Initialize.

        @param client(SolrConnection) An instance of a solr connection to use.
        @param q(string) The SOLR query to restrict results
        @param fq(string) A facet query, restricts the set of rows that q is applied to
        @param fields(string) A comma delimited list of field names to return
        @param pagesize(int) Number of rows to retrieve in each call.

        """
        self.logger = logging.getLogger('solrclient.SOLRSearchResponseIterator')
        self.client = client
        self.q = q
        self.fq = fq
        self.fields = fields
        self.crecord = 0
        self.pagesize = pagesize
        self.res = None
        self.done = False
        self.transformer = transformer
        self._nextPage(self.crecord)
        self._numhits = 0
        self.logger.debug("Iterator hits=%s" % str(self.res['response']['numFound']))
def __init__ ( self , client , q , fq = None , fields = '*' , pagesize = 100 , transformer = SOLRRecordTransformer ( ) , ) : self . logger = logging . getLogger ( 'solrclient.SOLRSearchResponseIterator' ) self . client = client self . q = q self . fq = fq self . fields = fields self . crecord = 0 self . pagesize = pagesize self . res = None self . done = False self . transformer = transformer self . _nextPage ( self . crecord ) self . _numhits = 0 self . logger . debug ( "Iterator hits=%s" % str ( self . res [ 'response' ] [ 'numFound' ] ) )
Initialize.

        @param client(SolrConnection) An instance of a solr connection to use.
        @param q(string) The SOLR query to restrict results
        @param fq(string) A facet query, restricts the set of rows that q is applied to
        @param fields(string) A comma delimited list of field names to return
        @param pagesize(int) Number of rows to retrieve in each call.