鉴于Go的名称相当无害,谷歌搜索这样的包只会给我搜索Go的Lucene包产生一个可识别的结果:this one with no commits。
有没有人知道Go的Lucene端口?
发布于 2012-11-01 04:27:42
发布于 2016-04-21 09:17:54
go还有另一个文本索引库bleve
其功能与lucene非常相似。
索引
message := struct{
Id string
From string
Body string
}{
Id: "example",
From: "marty.schoch@gmail.com",
Body: "bleve indexing is easy",
}
mapping := bleve.NewIndexMapping()
index, err := bleve.New("example.bleve", mapping)
if err != nil {
panic(err)
}
index.Index(message.Id, message)查询中
index, _ := bleve.Open("example.bleve")
query := bleve.NewQueryStringQuery("bleve")
searchRequest := bleve.NewSearchRequest(query)
searchResult, _ := index.Search(searchRequest)发布于 2012-11-02 23:32:40
您还可以看看Apache Lucy,它是Lucene的一个“松散的C”端口。
https://stackoverflow.com/questions/13166549
复制相似问题