TruthHun/DocHub

全文搜索未索引文件内容

724399396 opened this issue · 0 comments

您好,我需要能够检索文件的内容,但是我查了了代码之后发现只有将Title,Keywords,Description等存入ES中,但是我在演示Demo上看到是可以使用内容进行搜索的,我使用的代码是最新的master, commit hash dd28a31
es = append(es, ElasticSearchData{ Id: helper.Interface2Int(param["Id"]), Title: param["Title"].(string), Keywords: param["Keywords"].(string), Description: param["Description"].(string), Vcnt: helper.Interface2Int(param["Vcnt"]), Ccnt: helper.Interface2Int(param["Ccnt"]), Dcnt: helper.Interface2Int(param["Dcnt"]), Score: helper.Interface2Int(param["Score"]), Size: helper.Interface2Int(param["Size"]), Page: helper.Interface2Int(param["Page"]), DocType: helper.Interface2Int(param["DocType"]), DsId: helper.Interface2Int(param["DsId"]), Price: helper.Interface2Int(param["Price"]), TimeCreate: helper.Interface2Int(param["TimeCreate"]), })