srchx

A standalone lightweight full-text search engine built on top of blevesearch and Go with multiple storage (scorch, boltdb, leveldb, badger)

Github星跟踪图

SRCHX

A standalone lightweight full-text search engine built on top of blevesearch and Go with multiple storage (scorch, boltdb, leveldb, badgerdb)

Features

  • Standanlone.
  • Light & Fast.
  • Utilizes the full CPU cores, thanks to Go runtime.
  • Pluggable storage engines, badgerdb (pure Go rocksdb alternative), boltdb, leveldb, scorch.
  • Simple & Neat RESTful API.
  • Dynamic Index Creation, you don't need to create an index, just POST your data to the indexing endpoint.
  • You can search for your documents instantly.

Installation

  1. Goto Releases Page
  2. Choose your platform based version
  3. Download it
  4. Copy/Rename it as ./srchx
  5. Run chmod +x ./srchx
  6. Run ./srchx --help to see help info

Examples


# Example 1
# Add new document to the index "twitter" and type "tweet"
$ curl --request POST \
  --url 'http://localhost:2050/twitter/tweets/_doc/new' \
  --header 'Content-Type: application/json' \
  --data '{
	"user": "u5",
	"content": "this is my tweet",
	"views": 5
}'

# Example 2
# Fetch the previously added document using its ID
$ curl http://localhost:2050/twitter/tweets/_doc/2552b636-002e-4f1a-98b1-bdb06c2464ac


API Documentation

I published the API docs on postman here with examples.

Refs

  1. Blevesearch
  2. QueryStringQuery
  3. Sorting

About Me

A Gopher who likes to build tiny things that make big change.

主要指标

概览
名称与所有者alash3al/srchx
主编程语言Go
编程语言Go (语言数: 1)
平台
许可证
所有者活动
创建于2018-11-21 21:08:12
推送于2018-12-29 15:41:07
最后一次提交2018-12-29 17:31:08
发布数2
最新版本名称v1.2 (发布于 )
第一版名称v1.0.0-alpha (发布于 )
用户参与
星数159
关注者数9
派生数11
提交数24
已启用问题?
问题数4
打开的问题数3
拉请求数0
打开的拉请求数0
关闭的拉请求数0
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?