python通过LTP和whoosh实现mysql添加全文索引多字段

1、创建索引

1Createindex_twofield.py

from whoosh.filedb.filestore import FileStorage
from whoosh.fields import *
from settings import *
import os,time
# 引用数据库
from whoosh_Mysql import Mysqlwhoosh
Mysqlwhoosh=Mysqlwhoosh()

你可能感兴趣的:(Python君,python,mysql,android)