code: def build_search(self):
          
          s = self.search()
          s = self.query(s, self._query)
          s = self.filter(s)
          if self.fields:
              s = self.highlight(s)
          s = self.sort(s)
          self.aggregate(s)
          return s
docs: Construct the ``Search`` object.