<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def pre_facet_sqs(self):
 """ Return the queryset used for generating facets, before any facets are applied """

        sqs = SearchQuerySet()

        if self.query:
            sqs = sqs.filter(
                SQ(content=AutoQuery(self.query)) |  # Search `text` document
                SQ(get_title=AutoQuery(self.query)) | # boosted field
                SQ(boosted_search_terms=AutoQuery(self.query)) # boosted field
            )

        return sqs