Is there a Lucene package for Go?

Given the rather innocuous naming of Go, a Google search for such a package gives only one notable result for my searches for the Lucene package for Go: this one with no commits .

Does anyone know of any Lucene port for Go?

+4
source share
3 answers

This Go SOLR library looks much more promising, I think.

https://github.com/rtt/Go-Solr/

It looks a bit on the lean side, but it may be somewhere.

Or, a similar story for this with Elasticsearch:

https://github.com/dustin/go-elasticsearch

+3
source

You can also see Apache Lucy , which is Lucene's free C-port.

+3
source

There is another text indexing library for go, bleve

Features are very similar to lucene.

Indexing

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) 

Inquiries

 index, _ := bleve.Open("example.bleve") query := bleve.NewQueryStringQuery("bleve") searchRequest := bleve.NewSearchRequest(query) searchResult, _ := index.Search(searchRequest) 
+2
source

Source: https://habr.com/ru/post/1443309/


All Articles