iTool.MySearch.QueryParser.Compatibility 4.0.33-agenttasks.20261127.1

This is a prerelease version of iTool.MySearch.QueryParser.Compatibility.
dotnet add package iTool.MySearch.QueryParser.Compatibility --version 4.0.33-agenttasks.20261127.1
                    
NuGet\Install-Package iTool.MySearch.QueryParser.Compatibility -Version 4.0.33-agenttasks.20261127.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="iTool.MySearch.QueryParser.Compatibility" Version="4.0.33-agenttasks.20261127.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="iTool.MySearch.QueryParser.Compatibility" Version="4.0.33-agenttasks.20261127.1" />
                    
Directory.Packages.props
<PackageReference Include="iTool.MySearch.QueryParser.Compatibility" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add iTool.MySearch.QueryParser.Compatibility --version 4.0.33-agenttasks.20261127.1
                    
#r "nuget: iTool.MySearch.QueryParser.Compatibility, 4.0.33-agenttasks.20261127.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package iTool.MySearch.QueryParser.Compatibility@4.0.33-agenttasks.20261127.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=iTool.MySearch.QueryParser.Compatibility&version=4.0.33-agenttasks.20261127.1&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=iTool.MySearch.QueryParser.Compatibility&version=4.0.33-agenttasks.20261127.1&prerelease
                    
Install as a Cake Tool

iTool.MySearch.QueryParser.Compatibility

旧 .NET 客户端通过 catch (Lucene.Net.QueryParsers.Classic.ParseException) 处理搜索文本错误时,在执行查询的宿主引用本包,并在启动时调用一次:

using iTool.MySearch.QueryParser.Compatibility;

ClassicQueryExceptions.EnableForCurrentProcess();

该设置适用于本进程中此后抛出的 MySearch 查询解析错误,包括已经创建的 MyQueryService 实例。重复注册是幂等的。查询仍由 Rust 解析,兼容包在错误发生时创建原程序集定义的 ParseException。InnerException 是 MySearchQueryParseException,提供 Reason 和从零开始的 UTF-16 Position。启用后,直接捕获 Foundation 异常的代码可通过 InnerException 读取诊断。

默认 MySearch 只抛出 Foundation 异常。仅安装本包、尚未调用启动方法时,异常行为保持默认。新应用直接引用 iTool.MySearch。此开关作用于执行查询的进程。

通过 Orleans 传递兼容异常时,在发送端和接收端的服务注册中调用 services.AddClassicQueryExceptionSerialization(),让 Orleans 的异常序列化器支持经典 ParseException。客户端仅接收错误时可单独注册序列化支持。该注册沿用宿主已配置的异常类型筛选器。

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
4.0.33-agenttasks.20261127.1 38 11/27/2026
4.0.32-rustperf.20261126.1 56 11/26/2026