(self, minsize=2, maxsize=4, stored=False, field_boost=1.0,
                 queryor=False, phrase=False, sortable=False)
:param minsize: The minimum length of the N-grams.
        :param maxsize: The maximum length of the N-grams.
        :param stored: Whether to store the value of this field with the
            document. Since this field type generally contains a lot of text,
            you should avoid storing it with the document unless you need to,
            for example to allow fast excerpts in the search results.
        :param queryor: if True, combine the N-grams with an Or query. The
            default is to combine N-grams with an And query.
        :param phrase: store positions on the N-grams to allow exact phrase
            searching. The default is off.
:param minsize: The minimum length of the N-grams.
        :param maxsize: The maximum length of the N-grams.
        :param stored: Whether to store the value of this field with the
            document. Since this field type generally contains a lot of text,
            you should avoid storing it with the document unless you need to,
            for example to allow fast excerpts in the search results.
        :param queryor: if True, combine the N-grams with an Or query. The
            default is to combine N-grams with an And query.
        :param phrase: store positions on the N-grams to allow exact phrase
            searching. The default is off.
: param minsize : The minimum length of the N - grams . : param maxsize : The maximum length of the N - grams . : param stored : Whether to store the value of this field with the document . Since this field type generally contains a lot of text you should avoid storing it with the document unless you need to for example to allow fast excerpts in the search results . : param queryor : if True combine the N - grams with an Or query . The default is to combine N - grams with an And query . : param phrase : store positions on the N - grams to allow exact phrase searching . The default is off .
def __init__(self, minsize=2, maxsize=4, stored=False, field_boost=1.0,
                 queryor=False, phrase=False, sortable=False):
        """
        :param minsize: The minimum length of the N-grams.
        :param maxsize: The maximum length of the N-grams.
        :param stored: Whether to store the value of this field with the
            document. Since this field type generally contains a lot of text,
            you should avoid storing it with the document unless you need to,
            for example to allow fast excerpts in the search results.
        :param queryor: if True, combine the N-grams with an Or query. The
            default is to combine N-grams with an And query.
        :param phrase: store positions on the N-grams to allow exact phrase
            searching. The default is off.
        """

        formatclass = formats.Frequency
        if phrase:
            formatclass = formats.Positions

        self.analyzer = analysis.NgramAnalyzer(minsize, maxsize)
        self.format = formatclass(field_boost=field_boost)
        self.stored = stored
        self.queryor = queryor
        self.set_sortable(sortable)
def __init__ ( self , minsize = 2 , maxsize = 4 , stored = False , field_boost = 1.0 , queryor = False , phrase = False , sortable = False ) : formatclass = formats . Frequency if phrase : formatclass = formats . Positions self . analyzer = analysis . NgramAnalyzer ( minsize , maxsize ) self . format = formatclass ( field_boost = field_boost ) self . stored = stored self . queryor = queryor self . set_sortable ( sortable )