(self, fieldname, fieldspec)
Adds a field to the index's schema.

        :param fieldname: the name of the field to add.
        :param fieldspec: an instantiated :class:`whoosh.fields.FieldType`
            object.
Adds a field to the index's schema.
Adds a field to the index s schema .
def add_field(self, fieldname, fieldspec):
        """Adds a field to the index's schema.

        :param fieldname: the name of the field to add.
        :param fieldspec: an instantiated :class:`whoosh.fields.FieldType`
            object.
        """

        w = self.writer()
        w.add_field(fieldname, fieldspec)
        w.commit()
def add_field ( self , fieldname , fieldspec ) : w = self . writer ( ) w . add_field ( fieldname , fieldspec ) w . commit ( )