فهرست منبع

Update README.md

Hui Chen 12 سال پیش
والد
کامیت
39c0d11977
1فایلهای تغییر یافته به همراه1 افزوده شده و 0 حذف شده
  1. 1 0
      README.md

+ 1 - 0
README.md

@@ -50,6 +50,7 @@ func main() {
 	// 初始化
 	searcher.Init(types.EngineInitOptions{
 		SegmenterDictionaries: "github.com/huichen/wukong/data/dictionary.txt"})
+	defer searcher.Close()
 
 	// 将文档加入索引
 	searcher.IndexDocument(0, types.DocumentIndexData{Content: "此次百度收购将成中国互联网最大并购"})