Allows specifying a different class to use for results. Overrides any previous usages. If ``None`` is provided, Haystack will revert back to the default ``SearchResult`` object.
(self, klass)
| 381 | return clone |
| 382 | |
| 383 | def result_class(self, klass): |
| 384 | """ |
| 385 | Allows specifying a different class to use for results. |
| 386 | |
| 387 | Overrides any previous usages. If ``None`` is provided, Haystack will |
| 388 | revert back to the default ``SearchResult`` object. |
| 389 | """ |
| 390 | clone = self._clone() |
| 391 | clone.query.set_result_class(klass) |
| 392 | return clone |
| 393 | |
| 394 | def boost(self, term, boost): |
| 395 | """Boosts a certain aspect of the query.""" |