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