Skip to content

About

A REST Server on top of Lucene.NET

Resources

Stars

3 stars

Watchers

1 watching

Forks

Repository files navigation

LuceneServer.NET

NuGet .NET License Docs

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 / admin roles
  • .NET client library and import tools for relational databases

Quickstart

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.dll

Create 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.Client
using var client = new LuceneServerClient("http://localhost:5000", "books");
var result = await client.SearchAsync("rul*");

Documentation

📖 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).

License

See LICENSE.

About

A REST Server on top of Lucene.NET

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages