Link Search Menu Expand Document Documentation Menu

.NET clients

Preview

Lucenia has two .NET clients: a low-level Lucenia.Net client and a high-level Lucenia.Client client.

Lucenia.Net is a low-level .NET client that provides the foundational layer of communication with Lucenia. It is dependency free, and it can handle round-robin load balancing, transport, and the basic request/response cycle. Lucenia.Net contains methods for all Lucenia API endpoints.

Lucenia.Client is a high-level .NET client on top of Lucenia.Net. It provides strongly typed requests and responses as well as Query DSL. It frees you from constructing raw JSON requests and parsing raw JSON responses by supplying models that parse and serialize/deserialize requests and responses automatically. Lucenia.Client also exposes the Lucenia.Net low-level client if you need it. Lucenia.Client includes the following advanced functionality:

  • Automapping: Given a C# type, Lucenia.Client can infer the correct mapping to send to Lucenia.
  • Operator overloading in queries.
  • Type and index inference.

You can use both .NET clients in a console program, a .NET core, an ASP.NET core, or in worker services.

To get started with Lucenia.Client, follow the instructions in Getting started with the high-level .NET client or in More advanced features of the high-level .NET client, a slightly more advanced walkthrough.

350 characters left

Have a question? .