docs: def make_schema(fields, datefields=()):
      '''Create a whoosh.fields.Schema object from a list of field names.
      All fields will be set as TEXT fields. If datefields is supplied,
      additionally create DATETIME fields with those names
      
      '''
      text_field = whoosh.fields.TEXT(analyzer=whoosh.analysis.SimpleAnalyzer())
      fields = dict.fromkeys(fields, text_field)
      if datefields:
          datefields = dict.fromkeys(datefields, whoosh.fields.DATETIME)
          fields.update(datefields)
      schema = whoosh.fields.Schema()
      for fieldname in fields:
          schema.add(fieldname, fields[fieldname])
      return schema