nxsearch
1.0.0
正在进行中。上游,网址:https://github.com/rmind/nxsearch
NXSearch是一个全文搜索引擎库,还提供了Web服务器集成。
该发动机用C11编写,并根据2条规定的BSD许可分发。
尝试作为网络服务:
# git submodule update --init --recursive # ensure you have submodules
docker-compose up app # spin up the service
open http://127.0.0.1:8000/docs # documentation page NXS_BASEDIR环境变量指定了存储索引文档以及应用程序数据文件的基本目录。
# Create the index:
curl -XPOST http://127.0.0.1:8000/test-idx
# Index some test documents:
curl -d " cat dog cow " http://127.0.0.1:8000/test-idx/add/1
curl -d " dog cow " http://127.0.0.1:8000/test-idx/add/2
curl -d " cat cat cat " http://127.0.0.1:8000/test-idx/add/3
# Run a query:
curl -s -d " cat " http://127.0.0.1:8000/test-idx/search | jq在/docs URL上提供了带有端点文档的Swagger UI。
LUA过滤器API可以在此处找到。
C API文档可以在此处找到。