File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -268,6 +268,16 @@ anywhere else you want to paginate contents) exactly as described in
268268the `paginator example in the Django documentation
269269<https://docs.djangoproject.com/en/1.3/topics/pagination/#using-paginator-in-a-view> `_.
270270
271+ .. Note ::
272+
273+ When using a sunburnt query object with a Django paginator, you can
274+ chain any number of filters or any of the other methods that return
275+ a :class: `~sunburnt.SolrSearch ` instance; however, you should *not *
276+ call :meth: `~sunburnt.SolrSearch.execute `, as that will execute the
277+ query and return the result set for the current query; to function
278+ properly, the paginator needs to be able to query Solr for the total
279+ number of matches for the query and then add pagination options to
280+ slice up the results appropriately.
271281
272282Returning different fields
273283--------------------------
You can’t perform that action at this time.
0 commit comments