Need help with golucene?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

454 Stars 54 Forks Apache License 2.0 1.2K Commits 5 Opened issues


Go (Golang) port of Apache Lucene

Services available


Need anything else?

Contributors list

# 243,818
1171 commits

Build Status Coverage Status GoDoc


A Go port of Apache Lucene. Check out the online demo here!

Sync to Lucene Java 4.10 2014/10/22

Why do we need yet another port of Lucene?

Since Lucene Java is already optimized to teeth (and yes, I know it very much), potential performance gain should not be expected from its Go port. Quote from Lucy's FAQ:

Is Lucy faster than Lucene? It's written in C, after all.

That depends. As of this writing, Lucy launches faster than Lucene thanks to tighter integration with the system IO cache, but Lucene is faster in terms of raw indexing and search throughput once it gets going. These differences reflect the distinct priorities of the most active developers within the Lucy and Lucene communities more than anything else.

It also applies to GoLucene. But some benefits can still be expected: - quick start speed; - able to be embedded in Go app; - goroutine which I think can be faster in certain case; - ready-to-use byte, array utilities which can reduce the code size, and lead to easy maintenance.

Though it started as a pet project, I've been pretty serious about this.


Go 1.2+


go get -u


Using GoLucene is similar to using Lucene Java. Firstly, index need to be built first. Then, create an query and do the search against the index.

Note that the current GoLucene is rather basic and limited in feature. Only default functions are supported, like term frequency based weight calculation, filesystem directory, boolean query, etc. For further features, please raise requests.

A detailed example can be found here.


Apache Public License 2.0.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.