I need a way to use the solr template: in sunburnt solr, or is there another way to specify "all documents" from the index, and then clarify. Here is the code
....
si = sunburnt.SolrInterface(url=solr_url,http_connection=h)
search_terms = {SEARCH_TERMS_COMIN_FROM_A_FORM}
result = si.query(WILDCARD)
if search_terms['province']:
result = result.query(province=search_terms['province'])
if search_terms['town']:
result = result.query(town=search_terms['town'])
.......
results = result.execute()
ephan source
share