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文檔可以在此處找到。