Repository navigation
fix(go-skill): Elasticsearch skill search field mapping - #16611
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThis change adds skill-index field mapping to Elasticsearch query construction. A new helper, mapSkillSearchFields, converts document field names (name, tags, description, content) to their tokenized *_tks equivalents while preserving boost weights, applied conditionally in buildQueryStringQuery. New tests verify both mapped and unmapped behavior. ChangesSkill Query Field Mapping
Estimated code review effort: 2 (Simple) | ~10 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
LGTM |
Summary
Fix Elasticsearch-backed skill search by mapping skill search fields to their indexed token fields.
name,tags,description, andcontentare stored for display but are not searchable in the skill ES mapping. Search queries now targetname_tks,tags_tks,description_tks, andcontent_tks.Testing
/usr/local/go/bin/go test -count=1 ./internal/engine/elasticsearch