Search: bump contract to 0.12.0 and populate content_tier#3608
Conversation
website-search-data published Elastic.Internal.Search.Contract 0.12.0 (requires Elastic.Mapping 0.49.0), which adds the shared content_tier keyword field (primary/reference/supplementary/peripheral, neutral default 'reference') plus the ContentTiers constants, and activates new index-time analysis (stemmer_override for config/install/auth, a c#/.net -> dotnet char_filter, and split fixed vs. updateable synonym filters) purely via the bump. Bump the package versions and classify content_tier for docs pages in CommonEnrichments via a new ClassifyContentTier helper: - release notes -> Peripheral - deprecated / plugin / glossary / extend -> Supplementary - section root pages, get-started/overview -> Primary - everything else -> Reference (the default) API reference pages (no navigation item) get Reference explicitly. Uses the shared ContentTiers constants rather than string literals so values can't drift from website-search-data. Wires ContentTier into AssignDocumentMetadata's hash so a tier change triggers a re-index. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
|
Warning Review limit reached
Next review available in: 47 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (3)
✨ Finishing Touches✨ Simplify code
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 |
|
Label error. Requires exactly 1 of: automation, breaking, bug, changelog:skip, chore, ci, dependencies, documentation, enhancement, feature, fix, redesign. Found: |
Summary
website-search-data's relevance work (
e6cfa72+ follow-ups) is published asElastic.Internal.Search.Contract0.12.0 (requiresElastic.Mapping0.49.0). This bumps both and populates the new sharedcontent_tierfield for docs pages.Package bump:
Elastic.Mapping0.48.0 → 0.49.0,Elastic.Internal.Search.Contract0.11.0 → 0.12.0. This alone activates, with no docs-builder code changes needed: thecontent_tagscopy_to field, thestemmer_override(config/install/auth), thec#/.net→dotnetchar_filter, the split fixed/updateable synonym filters, and a brand-qualifiedai_search_queryenrichment prompt.content_tier classification: added
ElasticsearchMarkdownExporter.ClassifyContentTier, called fromCommonEnrichments:Peripheral/docs/extend/→SupplementaryPrimaryReference(the neutral default)ReferenceexplicitlyUses the shared
ContentTiersconstants (not string literals) so values can't drift from website-search-data.ContentTieris folded intoAssignDocumentMetadata's hash so a tier change triggers a re-index.Test plan
dotnet build(whole solution, 43 projects) succeeds with no API drift from the bumpdotnet test tests/Elastic.Markdown.Tests— newContentTierClassificationTests(12/12) and existingDocumentationDocumentSerializationTestsall passElastic.Markdown.Testssuite run; 14 pre-existing failures are unrelatedScopedFileSystem/git-checkout tests failing in this worktree environmentdotnet format/ lint clean (pre-push hook passed)