Bitzsoft.Integrations.Search.Lucene
1.0.0-alpha.8
This is a prerelease version of Bitzsoft.Integrations.Search.Lucene.
dotnet add package Bitzsoft.Integrations.Search.Lucene --version 1.0.0-alpha.8
NuGet\Install-Package Bitzsoft.Integrations.Search.Lucene -Version 1.0.0-alpha.8
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="Bitzsoft.Integrations.Search.Lucene" Version="1.0.0-alpha.8" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Bitzsoft.Integrations.Search.Lucene" Version="1.0.0-alpha.8" />
<PackageReference Include="Bitzsoft.Integrations.Search.Lucene" />
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 Bitzsoft.Integrations.Search.Lucene --version 1.0.0-alpha.8
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Bitzsoft.Integrations.Search.Lucene, 1.0.0-alpha.8"
#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 Bitzsoft.Integrations.Search.Lucene@1.0.0-alpha.8
#: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=Bitzsoft.Integrations.Search.Lucene&version=1.0.0-alpha.8&prerelease
#tool nuget:?package=Bitzsoft.Integrations.Search.Lucene&version=1.0.0-alpha.8&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Bitzsoft.Integrations.Search.Lucene
Lucene.NET 全文检索引擎实现 — 拼音分词、NGram、索引生命周期、三段式检索编排。
功能特性
- 拼音分词器:中文→拼音转换、贪婪音节匹配、姓名识别变体生成(移植自 BitzOrcas 生产实现)
- Analyzer 链:NGram bigram 分析器、整词小写分析器、按字段路由分析器、ExtensionFilter
- 弱词过滤体系:LegalSuffix 剥离(实体法定后缀)、OrgWeak/GeoWeak 过滤、地理词拼音变体
- 文档模型:4 字段布局(raw + _search + _ngram + _superlong),超长字段标记
- 索引生命周期:延迟批量提交(阈值 1000 + 定时 2s + 提交锁串行化)、原子目录替换重建(IndexNew/Bak/Temp)
- 查询执行:SafeQueryBuilder(多路径召回 + 拼音扩展 + clause 爆裂防护)、流式全量召回 Collector
- LuceneSearchEngine:实现 ISearchEngine,实时写入、全量重建(keyset 分页)、三段式检索(Pipeline 聚合 + HitLevel)
使用
services.AddBitzsoftLuceneSearch(opt => opt.BasePath = "/data/lucene");
// 可选:注册弱词/停用词/扩展词存储(宿主实现 ISegmentWordStore 等)
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 is compatible. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. 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.
-
net10.0
- Bitzsoft.Integrations.Search (>= 1.0.0-alpha.8)
- Lucene.Net (>= 4.8.0-beta00016)
- Lucene.Net.Analysis.Common (>= 4.8.0-beta00016)
- Lucene.Net.Analysis.SmartCn (>= 4.8.0-beta00016)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.9)
- PinYinConverterCore (>= 1.0.2)
-
net5.0
- Bitzsoft.Integrations.Search (>= 1.0.0-alpha.8)
- Lucene.Net (>= 4.8.0-beta00016)
- Lucene.Net.Analysis.Common (>= 4.8.0-beta00016)
- Lucene.Net.Analysis.SmartCn (>= 4.8.0-beta00016)
- Microsoft.Extensions.Logging.Abstractions (>= 5.0.0)
- PinYinConverterCore (>= 1.0.2)
-
net8.0
- Bitzsoft.Integrations.Search (>= 1.0.0-alpha.8)
- Lucene.Net (>= 4.8.0-beta00016)
- Lucene.Net.Analysis.Common (>= 4.8.0-beta00016)
- Lucene.Net.Analysis.SmartCn (>= 4.8.0-beta00016)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.9)
- PinYinConverterCore (>= 1.0.2)
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 |
|---|---|---|
| 1.0.0-alpha.8 | 43 | 7/1/2026 |