Repository navigation
[meilisearch] index community blog posts - #868
Merged
Merged
Conversation
The search sync only read the official blog listing (`allBlogs` of /api/blog). Community posts come from their own paginated listing, /api/blog/community, which never overlaps with the official one. Index both as title-only `blog` documents, the product hub search renders as blog posts. The community listing pages through live posts with an offset, so a post published or removed mid-crawl shifts the pages: crawl again (up to 3 times) when the pages don't add up to the announced total, instead of failing the run. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
The search sync only indexed the official blog listing (
allBlogsof/api/blog). Community posts come from their own paginated listing,/api/blog/community(getCommunityBlogsPagein moon-landing), which returns non-featured posts only, so the two listings never overlap. ThecommunityBlogPostsfield of/api/blogis just a 20-post sidebar preview and stays ignored.Changes
fetch_blog_listing(api_url, items_key)holds the existing pagination and validation, andfetch_blog_chunks()merges the official and community listings.product: "blog", like official posts: hub search renders that product as a blog post, while any other product would get docs heading breadcrumbs. Blog documents are vectorless, so this adds no embedding inference.Testing
pytest tests/test_search_ingestion.py: 58 passed (the pagination test now covers both listings, plus a new test for the re-crawl).doc-builder populate-search-engine --libraries blog --skip-embeddingsagainst the live API: 4,693 blog entries (891 official + 3,802 community), crawl took ~1m45s. Nothing was written to Meilisearch.The first incremental run after merge adds ~3.8k documents to
docs-semantic-search; later runs only add new posts.🤖 Generated with Claude Code