Categorygithub.com/rekki/go-query
repositorypackage
0.0.0-20220422071909-8e456925a818
Repository: https://github.com/rekki/go-query.git
Documentation: pkg.go.dev

# README

github.com/rekki/go-query: simple []int32 query library

Build Status codecov GoDoc

used to build and execute queries such as:

n := 10 // total docs in index

And(
        Term(n, "name:hello", []int32{4, 5}),
        Term(n, "name:world", []int32{4, 100}),
        Or(
                Term(n, "country:nl", []int32{20,30}),
                Term(n, "country:uk", []int32{4,30}),
        )
)
  • scoring: only idf scode (for now)
  • supported queries: or, and, and_not, dis_max, constant, term
  • util/norm: space_between_digits, lowercase, trim, cleanup, ... GoDoc
  • util/tokenize: left edge, custom, charngram, unique, soundex, ... GoDoc
  • util/memory index: useful example of how to build more complex search engine with the library GoDoc