fist

A lightweight full-text index server with a focus on speed and efficiency.

  • 所有者: f-prime/fist
  • 平台:
  • 许可证: MIT License
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

Fist - (F)ull-(t)ext (i)ndex (s)erver

Slack
Patreon
CircleCI

Fist is a fast, lightweight, full-text search and index server. Fist stores all information in memory making lookups very fast while also persisting the index to disk. The index can be accessed over a TCP connection and all data returned is valid JSON.

Fist is still heavily under development. Not all features are implemented or stable yet.

Motivation

Most software that requires full-text search is not really that complicated and does not need an overly complex solution. Using a complex solution often times leads to headaches.
Setting up Elasticsearch when Elasticsearch really isn't needed for the particular application costs more time and money to maintain.

This is where Fist comes in. Fist is intended to be extremely easy to deploy and integrate into your application. Just start the Fist server and start sending commands.

Build and start Fist server

make
./bin/fist
Fist started at localhost:5575

Run Tests

make test

Example Usage

Commands can be sent over a TELNET connection

Commands: INDEX, SEARCH, EXIT, VERSION, DELETE

telnet localhost 5575
Trying ::1...
telnet: connect to address ::1: Connection refused
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
INDEX document_1 Some text that I want to index
Text has been indexed
INDEX document_2 Some other text that I want to index
Text has been indexed
SEARCH I want to index
["document_1","document_2"]
DELETE I want to index
Key Deleted
SEARCH I want to index
[]
EXIT
Bye

Docker Usage

# Build image
docker build . -t fist:latest

# Run tests
docker run --rm -it fist test

# Run server and make volume for database
docker run -d --init --rm -p 5575:5575 -v /var/local/lib/fist fist

Key Features

  • Full text indexing and searching
  • Persisting data to disk
  • Compression of index file
  • Accessible over TCP connection

Client Libraries

NodeJS

Python

Go

Ruby

Contributors

主要指标

概览
名称与所有者f-prime/fist
主编程语言C
编程语言C (语言数: 5)
平台
许可证MIT License
所有者活动
创建于2019-04-19 07:36:08
推送于2019-10-15 15:07:29
最后一次提交2019-10-15 20:37:28
发布数2
最新版本名称0.0.2 (发布于 )
第一版名称0.0.1 (发布于 )
用户参与
星数626
关注者数23
派生数52
提交数158
已启用问题?
问题数25
打开的问题数10
拉请求数25
打开的拉请求数1
关闭的拉请求数2
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?