Content search service — multiSearch + highlighting facade#22
Merged
Conversation
…cade) - ContentFilters/SearchHit/SearchHits/CategoryCount result records. - ContentSearchService (@component, gated on meilisearch.enabled) over MeilisearchClient: search/listPosts/getByUrlOrId/categoryFacets. Builds multi-search bodies with AND-combined quote-escaped filters, publishedDate:desc tie-breaker, Highlighter boundary markers + safeHighlight snippets, cropping, showRankingScore, and paging. Resolves spec 003's tie-breaker at query time. - Tests: pure buildFilter/parseHits/parseFacets + public methods via a capturing MeilisearchClient subclass (request bodies + parsing + get + empty). 121 tests green. - steps.md; refresh CLAUDE.md. Refs #21
hendrikebbers
approved these changes
Jul 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ContentSearchServiceis the read facade the MCP tools (spec 012) call. It builds Meilisearchmulti-searchbodies with AND-combined filters (source/locale/categories/since), apublishedDate:desctie-breaker, and the libraryHighlighterboundary markers, returningSearchHits with HTML-safe snippets. Also exposeslistPosts,getByUrlOrId, andcategoryFacets. Read-only.Spec
docs/specs/011-content-search-service/{design,behaviors,steps}.mdChanges
ContentFilters/SearchHit/SearchHits/CategoryCountrecordsContentSearchService:search/listPosts/getByUrlOrId/categoryFacets— request building +Highlighter.safeHighlightparsing; resolves spec 003's tie-breaker at query timeTest coverage
buildFilter/parseHits/parseFacets+ public methods via a capturingMeilisearchClientsubclass (request bodies + parsing + get + empty). Live ranking/filtering is Meilisearch's job (request correctness verified). 121 tests total; spec-review and quality-review clean.Closes #21
🤖 Generated with Claude Code