Previous topic

2.1.7.1.6. solrclient.SOLRSubsampleResponseIterator

Next topic

2.1.7.1.8. solrclient.SolrConnection

This Page

2.1.7.1.7. solrclient.SOLRValuesResponseIterator

class solrclient.SOLRValuesResponseIterator(client, field, q='*:*', fq=None, pagesize=1000)

Iterates over a SOLR get values response. This returns a list of distinct values for a particular field.

__init__(client, field, q='*:*', fq=None, pagesize=1000)

Initialize.

@param client(SolrConnection) An instance of a solr connection to use. @param field(string) name of the field from which to retrieve values @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, field[, q, fq, pagesize]) Initialize.
next()