Orchard Core 2.1, add support for Elasticsearch Token Filters - This week in Orchard (22/11/2024)
We are thrilled to announce that Orchard Core 2.1 is now available! Check out this post to know everything about the latest release of Orchard Core. In the upcoming weeks, we will check out the newest features and additions of Orchard Core 2.1. Let's just get right into the news!
Orchard Core updates
Support WebM filetype in media extensions
WebM is an audiovisual media file format. It is primarily intended to offer a royalty-free alternative to use in the HTML video and the HTML audio elements. It has a sister project, WebP, for images. The WebM file format is quite popular nowadays and should also be supported by Orchard Core. The Media module provides a UI to upload and organize binary files that can be used while creating content. And from now on, by using that UI, you can upload WebM files too. The Orchard Core documentation shows how to configure the list of allowed file extensions by modifying the appsettings.json file. Here, you can see the added webm extension.
Add support for Elasticsearch Token Filters
Token filters accept a stream of tokens from a tokenizer and can modify tokens (eg. lowercasing), delete tokens (eg. remove stopwords), or add tokens (eg. synonyms). Elasticsearch has a number of built-in token filters you can use to build custom analyzers. Until now, configuring custom analyzers using the OrchardCore_Elasticsearch section of the appsettings.json has not been possible. As of version 2.1, you can define custom token filters in your Elasticsearch configuration. To add new custom token filters, update your Elasticsearch settings accordingly.
For instance, to create a token filter named english_stop, you can include the following configuration in your appsettings.json file:
In this example, the english_stop token filter removes English stop words, and the my_new_analyzer uses the standard tokenizer along with the english_stop filter to process text.
News from the community
Orchard Core 2.1
The community recently released the 2.1 version of Orchard Core with several new features and additions! This release includes critical bug fixes that enhance stability and performance, along with new features to improve functionality. Furthermore, users granted the new DisableTwoFactorAuthenticationForUsers permission can now disable two-factor authentication for other users directly from the Users Admin UI. Previously, only users with the SiteOwner permission could list themes. Now, users with the existing ApplyTheme permission can also list and apply themes, enhancing theme management capabilities. The feature formerly known as Azure Email Provider has been renamed to Azure Communication Services Email to clarify that it uses ACS, and to use the same naming pattern as the ACS SMS feature. And thanks to the newly introduced System-Type capability, attaching DashboardPart to an admin dashboard is no longer necessary. And these are just some of the enhancements!
Prior to initiating this upgrade, thoroughly review the documented list of behavioral changes to facilitate a smooth and hassle-free transition. Orchard Core is available as a NuGet package which you can easily add to your ASP.NET Core solution. Here's how you can get started with Orchard Core!
Orchard Core is among the most active .NET Foundation projects
By using the .NET Foundation Project site you can check out the .NET Foundation Project Trends.
And here comes an update for October 2024 on behalf of the .NET Foundation Project Committee. The most active Community projects for the past month were:
- Pull Requests: Orchard Core (73), OmniSharp VS Code (71)
- Commits: Verify (143), OmniSharp VS Code (120), Oqtane (119)
- Contributors: Docker.NET (6), Elsa Workflows (5)
- Downloads: Polly (25.0M), AutoMapper (17.9M)
So, as you can see, Orchard Core is, as usual, among the most active .NET Foundation projects!
Orchard Dojo Newsletter
Lombiq's Orchard Dojo Newsletter has 466 subscribers! We have started this newsletter to inform the community around Orchard of the latest news about the platform. By subscribing to this newsletter, you will get an e-mail whenever a new post is published to Orchard Dojo, including This week in Orchard of course.
Do you know of other Orchard enthusiasts who would like to read our weekly articles? Tell them to subscribe here!