SphinxConnector.NET 6.3 has been released
By Dennis
We're pleased to announce that SphinxConnector.NET 6.3 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.2. and higher.
This release adds support for using records either as document models or projection targets to the fluent API. So the document model from our introductory example can be reduced to:
public record Book(int Id, string Title, string Author, decimal Price, bool EbookAvailable, DateTime ReleaseDate,
IList<long> Categories, int Weight);
Using records is probably even more useful when you are projecting into a new result e.g.:
public record SearchResult(int Id, string TitleSnippet, decimal Price);
var searchResults = await FulltextSession.Query<Book>().
Match("*programming*").
Limit(0, 20).
Select(x => new SearchResult(x.Id, x.Title.GetSnippet(), x.Price)).
ToListAsync();
For users of Manticore Search we've added support for calling the Autocomplete function via the fluent API:
using var fulltextSession = fulltextStore.StartSession();
var results = await fulltextSession.AutocompleteAsync<Book>("Charles P");
//Options can be changed via AutocompleteOptions:
var options = new AutocompleteOptions { Append = true, Prepend = true };
var results = await fulltextSession.AutocompleteAsync<Book>("Charles P", options);
If you are using Sphinxsearch you can now use the TDIGEST function in your queries.
The full list of changes is available in the version history.