Previous topic

2.1.7.1.4. solrclient.SOLRRecordTransformer

Next topic

2.1.7.1.6. solrclient.SOLRSubsampleResponseIterator

This Page

2.1.7.1.5. solrclient.SOLRSearchResponseIterator

class solrclient.SOLRSearchResponseIterator(client, q, fq=None, fields='*', pagesize=100, transformer=<solrclient.SOLRRecordTransformer object at 0x101d943d0>)

Performs a search against a SOLR index and acts as an iterator to retrieve all the values.

__init__(client, q, fq=None, fields='*', pagesize=100, transformer=<solrclient.SOLRRecordTransformer object at 0x101d943d0>)

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.

Methods

__init__(client, q[, fq, fields, pagesize, ...]) Initialize.
next()
processRow(row) Override this method in derived classes to reformat the row response