Performs a best guess constructing the search query. This method is somewhat naive but works well enough for the simple, common cases.
(self, query_string, fieldname="content")
| 479 | return clone |
| 480 | |
| 481 | def auto_query(self, query_string, fieldname="content"): |
| 482 | """ |
| 483 | Performs a best guess constructing the search query. |
| 484 | |
| 485 | This method is somewhat naive but works well enough for the simple, |
| 486 | common cases. |
| 487 | """ |
| 488 | kwargs = {fieldname: AutoQuery(query_string)} |
| 489 | return self.filter(**kwargs) |
| 490 | |
| 491 | def autocomplete(self, **kwargs): |
| 492 | """ |