A REST server on top of Apache Lucene.NET – fast full-text, phonetic and geo search for autocomplete fields, product lists, addresses and documents.
- Full-text search with Lucene query syntax, phonetic search (Soundex, Cologne phonetics)
- Geo filters (bbox, distance) and GeoJSON output
- Basic authentication with
read/write/adminroles - .NET client library and import tools for relational databases
git clone https://github.com/jugstalt/LuceneServerNET.git
cd LuceneServerNET
dotnet publish src/LuceneServerNET -c Release -o ./publish
cd publish
ASPNETCORE_URLS=http://localhost:5000 dotnet LuceneServerNET.dllCreate an index, map it, add a document and search:
curl -X POST http://localhost:5000/Lucene/createindex/books
curl -X POST http://localhost:5000/Lucene/map/books -H "Content-Type: application/json" \
-d '{"fields":[{"name":"title","fieldType":"text","index":true,"store":true}],"primaryFields":["title"]}'
curl -X POST http://localhost:5000/Lucene/index/books -H "Content-Type: application/json" \
-d '[{"title":"LuceneServerNET rules!"}]'
curl -X POST http://localhost:5000/Lucene/refresh/books
curl "http://localhost:5000/Lucene/search/books?q=rul*"From .NET:
dotnet add package LuceneServerNET.Clientusing var client = new LuceneServerClient("http://localhost:5000", "books");
var result = await client.SearchAsync("rul*");📖 docs.gviewonline.com – English and German
Installation · Configuration · Authentication · REST API · .NET client · Tools · Changelog
Build the docs locally: ./build-docs.ps1 -NoCopy (output in artifacts/docs/site).
See LICENSE.