(self, fieldname=None, boost=1.0)
:param fieldname: the name of the field to match, or ``None`` or ``*``
            to match all documents.
:param fieldname: the name of the field to match, or ``None`` or ``*``
            to match all documents.
: param fieldname : the name of the field to match or None or * to match all documents .
def __init__(self, fieldname=None, boost=1.0):
        """
        :param fieldname: the name of the field to match, or ``None`` or ``*``
            to match all documents.
        """

        if not fieldname or fieldname == "*":
            fieldname = None
        self.fieldname = fieldname
        self.boost = boost
def __init__ ( self , fieldname = None , boost = 1.0 ) : if not fieldname or fieldname == "*" : fieldname = None self . fieldname = fieldname self . boost = boost