We're pleased to announce that SphinxConnector.NET 5.0 is now available
via NuGet! You can
also download a build from our site, but that only contains a version
for .NET Framework 4.6.1. and higher.
With this release we’re saying good bye to Common.Logging, which has
been replaced with our own logging abstraction. We’re providing separate
NuGet packages for the most commonly used logging frameworks, namely:
Also included in SphinxConnector.NET is a simple console logging
provider that can be used during development.
The second change in dependencies is the switch from JSON.NET to
System.Text.Json as the default json handler. If for some reason you
need to stay on JSON.NET, you can easily do so by implementing your own
JsonObjectSerializer.
SphinxConnector.NET now includes builds for .NET Core 3.1 and .NET 5.0,
where we’ve added implementations for new async methods to
SphinxQLDataReader that were introduced with .NET Core 3.1. These builds
also contain fluent API support for async enumerables via
IFulltextQuery.ToAsyncEnumerable().
The biggest new feature is the introduction of prepared (sometimes also
called ‘compiled’) queries to the fluent API.
The idea behind prepared queries is to create a query template that is
parsed once and then reused on the following executions thus alleviating
the overhead caused by parsing the expression tree and generating the
SphinxQL statement. This can lead to significant reductions in
allocations and time spend on parsing the expression tree of a query,
especially in high load scenarios, while at the same time giving you all
the advantages of a strongly typed query API. More about prepared
queries can be found in the documentation.
For a full list of changes, please refer to the version
history.