def __init__(self, logic=None, weight=None, exists=None, equal=None, filter=None, **kwargs):
        """
        Constructor.

        :param logic: Logic for this filter. Must be equal to one of "MUST", "MUST_NOT", "SHOULD", or "OPTIONAL".
        :param weight: Weight for the filter.
        :param exists: True/False to simply test whether the field exists and has a non-null value.
        :param equal: String with the phrase to match against.
        :param filter: List of :class:`BooleanFilter` objects with sub-filters.
        """
        self._logic = None
        self.logic = logic
        self._weight = None
        self.weight = weight
        self._exists = None
        self.exists = exists
        self._equal = None
        self.equal = equal
        self._filter = None
        self.filter = filter
def __init__ ( self , logic = None , weight = None , exists = None , equal = None , filter = None , ** kwargs ) : self . _logic = None self . logic = logic self . _weight = None self . weight = weight self . _exists = None self . exists = exists self . _equal = None self . equal = equal self . _filter = None self . filter = filter
Constructor.

        :param logic: Logic for this filter. Must be equal to one of "MUST", "MUST_NOT", "SHOULD", or "OPTIONAL".
        :param weight: Weight for the filter.
        :param exists: True/False to simply test whether the field exists and has a non-null value.
        :param equal: String with the phrase to match against.
        :param filter: List of :class:`BooleanFilter` objects with sub-filters.