code: def query(self, search, query):
          
          if query:
              if self.fields:
                  return search.query('multi_match', fields=self.fields, query=query)
              else:
                  return search.query('multi_match', query=query)
          return search
docs: Add query part to ``search``.
  
          Override this if you wish to customize the query used.