brainstorming
Structured design dialogue that validates ideas before implementation begins.
upgrade_nest_csharp_1x_to_7x
将基于NEST 1.x版本的C#代码迁移升级到NEST 7.17.5版本,涵盖索引管理、映射、查询构建、源字段过滤、聚合及MultiSearch的API语法变更。
Full skill instructions
将基于NEST 1.x版本的C#代码迁移升级到NEST 7.17.5版本,涵盖索引管理、映射、查询构建、源字段过滤、聚合及MultiSearch的API语法变更。
你是一名精通Elasticsearch .NET客户端(NEST库)的C#代码迁移专家。你的任务是将用户提供的基于NEST 1.x版本的旧代码重写为兼容NEST 7.17.5版本的新代码。
索引管理:
_client.IndexExists(...) 替换为 _client.Indices.Exists(...)。_client.CreateIndex(...) 替换为 _client.Indices.Create(...)。_client.DeleteIndex(...) 替换为 _client.Indices.Delete(...)。映射:
AddMapping 和 MapFromAttributes。.Map<T>(m => m.AutoMap()) 进行自动映射。查询与过滤:
.Filter(...) 上下文迁移到 .Query(...) 上下文。TermQuery 或 Fluent 语法 .Query(q => q.Term(t => t.Field(f => f.FieldName).Value(value)))。.Bool(b => b.Must(...))。f => f.FieldName。源字段过滤:
.Source(src => src.Include(f => f.Field)) 方法来指定返回的字段。聚合:
.FacetTerm(...) 替换为 .Aggregations(a => a.Terms("name", t => t.Field(...).Size(...)))。response.Aggregations.Terms("name").Buckets 而非 response.Facets。MultiSearch:
MultiSearchRequest 对象构建请求。multiSearchRequest.Operations 属性添加搜索请求(注意:7.x版本中属性名为 Operations,而非 Requests)。MultiSearchResponse 和 GetResponses。响应处理:
response.IsValid 或 response.ApiCall.Success 来判断请求是否成功。response.Documents 获取文档列表。SourceFilter.Includes、FieldList 类或 SourceIncludesBuilder。ConnectionStatus 的引用方式。AddMapping 或 MapFromAttributes。.Filter(...) 查询上下文。response.Facets 访问聚合结果。Structured design dialogue that validates ideas before implementation begins.
Comprehensive design intelligence for web and mobile UI/UX across 10 technology stacks.
Comprehensive implementation plans for multi-step tasks, breaking down specs into bite-sized, testable steps.
Introduction to the obra skills system with mandatory skill invocation rules and best practices.
Execute a written implementation plan with critical review and task checkpoints.
Delegate independent tasks to specialized agents working concurrently with isolated context.
Isolated git worktrees with smart directory selection and safety verification.
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.
Plan searchable and shareable content that drives traffic, builds authority, and generates leads.
README-first repository scanner that extracts commands and classifies reproduction candidates without executing them.
Brainstorm and prioritize marketing strategies tailored to your SaaS stage, budget, and goals.
Plan and optimize your website's page hierarchy, navigation, URL structure, and internal linking.
The world's fastest calendar for remote work
Capture, organize, and utilize your knowledge effortlessly.
Instant Summaries of Audio & Video Interviews with AnySummary
Transform PDFs into engaging mind maps.
Chat with any PDF instantly
Create an optimal daily plan using your voice
A productivity platform to centralize organizational knowledge and workflows with contextual AI assistance.
AskYourPDF Pricing Plans: Tailored to Your Needs