Sitemap: Read from semantic index for content_last_updated#3104
Sitemap: Read from semantic index for content_last_updated#3104
Conversation
The sitemap command was querying the lexical index, which does not have content_last_updated populated. Switch to the semantic index where the field is available. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe sitemap generation service was updated to query the semantic Elasticsearch index instead of the lexical index. Two files were modified: Suggested labels
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches✨ Simplify code
Comment |
What
Switch sitemap generation to query the semantic index instead of the lexical index.
Why
The
content_last_updatedfield is only populated in the semantic index (docs-assembler.semantic-{env}-latest). The sitemap command was querying the lexical index, which doesn't have this field, causing it to fail.How
Changed
DocumentationMappingContext.DocumentationDocumenttoDocumentationMappingContext.DocumentationDocumentSemanticinAssemblerSitemapService.Test plan
assembler sitemapagainst an environment with the semantic index populated<lastmod>datesNotes
The Changes API already reads from the semantic index via
ElasticsearchClientAccessor— no change needed there.🤖 Generated with Claude Code