nxsearch
1.0.0
進行中の作業。上流:https://github.com/rmind/nxsearch
NXSearchは、Webサーバーの統合も備えたフルテキスト検索エンジンライブラリです。
エンジンはC11で記述されており、2節BSDライセンスの下で配布されています。
Webサービスとして試すには:
# 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 | jqEndpointドキュメントを使用したSwagger UIは、 /docs URLで提供されます。
LUAフィルターAPIはここにあります。
C APIドキュメントはここにあります。