code: def form_query(query_type, query):
      
      fields = [
          field + "^" + str(SEARCH_BOOSTS[field]) if field in SEARCH_BOOSTS else field
          for field in SEARCH_FIELDS
      ]
      return Q("multi_match", fields=fields, query=query, type=query_type)
docs: Returns a multi match query