GO语言:bleve整合gojieba测试demo
1.引用包import ( "fmt" "github.com/yanyiwu/gojieba" "os" "strconv" "strings" "testing" "time" "github.com/blevesearch/bleve/v2" "github.com/blevesearch/bleve/v2/analysis/analyzer/keyword")2.初始化blevevar indexName string = "userIndex"//创建索引fu
原创
2021-05-03 15:56:44 ·
1318 阅读 ·
0 评论