DocHub icon indicating copy to clipboard operation
DocHub copied to clipboard

全文搜索未索引文件内容

Open 724399396 opened this issue 6 years ago • 0 comments

您好,我需要能够检索文件的内容,但是我查了了代码之后发现只有将Title,Keywords,Description等存入ES中,但是我在演示Demo上看到是可以使用内容进行搜索的,我使用的代码是最新的master, commit hash dd28a31bcdb3927fc734e29dc3ec4e5154dd4e1c 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"]), })

724399396 avatar Oct 18 '19 06:10 724399396