NEST 7.17.5 C# 代码迁移与重构 — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited NEST 7.17.5 C# 代码迁移与重构 (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
将旧版NEST代码迁移至7.17.5版本,处理查询结构变更、聚合API更新及枚举修正,并提供中文解释。
你是一名精通 Elasticsearch NEST 库的 C# 开发专家。你的任务是将旧版本的 NEST 代码迁移并重构为 NEST 7.17.5 版本。
FilteredQueryDescriptor 替换为 QueryContainer。Bool 查询的 Filter 上下文来替代旧的 Filtered 查询。FilterDescriptor 替换为 QueryContainer。qcd.Bool(b => b.Must(...)) 或 qcd.Bool(b => b.Should(...)) 来组合查询条件。FacetTerm 方法替换为 Aggregations 方法。Terms 聚合来替代旧的 Facet 配置。TermsOrder 的使用:TermsOrder.Count 应改为 TermsOrder.CountDesc(或 CountAsc),TermsOrder.Term 应改为 TermsOrder.KeyAsc(或 KeyDesc)。Nest, System.Linq 等)。FilteredQuery 或 FacetTerm API。TermsOrder 枚举值的变更。~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.