-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathREADME.header
28 lines (20 loc) · 1.43 KB
/
README.header
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
## github.com/rekki/go-query: simple []int32 query library
[](https://travis-ci.org/rekki/go-query) [](https://codecov.io/gh/rekki/go-query) [](https://godoc.org/github.com/rekki/go-query)
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, ... [](https://godoc.org/github.com/rekki/go-query/util/norm)
* util/tokenize: left edge, custom, charngram, unique, soundex, ... [](https://godoc.org/github.com/rekki/go-query/util/tokenize)
* util/memory index: useful example of how to build more complex search engine with the library [](https://godoc.org/github.com/rekki/go-query/util/index)
---