Given the rather innocuous naming of Go, Google searching for such a package only produces one discernable result for my searches for a Lucene package for Go: this one with no commits.
Does anyone know of any Lucene port for Go?
This Go SOLR library looks rather more promising, I think.
https://github.com/rtt/Go-Solr/
Looks a bit on the lean side, but might get you somewhere.
Or, similar story for this with Elasticsearch:
You might also look at Apache Lucy, which is a "loose C" port of Lucene.
There is another text indexing library for go, bleve
The features are very similar to 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)