writer = ix.writer()
q = MyTable.select()
for item in q:
    print('adding %s' % item.Title)
writer.add_document(title=item.Title, content=item.content, url=item.URL)
writer.add_document(spelling=item.Title)
self.addContentToSpelling(writer, item.content)
writer.commit()
How to use n-grams in whoosh