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.初始化bleve
var indexName string = "userIndex"
//创建索引
fu
原创
2021-05-03 15:56:44 ·
1102 阅读 ·
0 评论