Skip to content

[meilisearch] index community blog posts - #868

Merged
mishig25 merged 1 commit into
mainfrom
meilisearch-community-blogs
Oct 28, 2026
Merged

mishig25 merged 1 commit into
mainfrom
meilisearch-community-blogs

Conversation

@mishig25

Copy link
Copy Markdown
Contributor

The search sync only indexed the official blog listing (allBlogs of /api/blog). Community posts come from their own paginated listing, /api/blog/community (getCommunityBlogsPage in moon-landing), which returns non-featured posts only, so the two listings never overlap. The communityBlogPosts field of /api/blog is just a 20-post sidebar preview and stays ignored.

Changes

  • fetch_blog_listing(api_url, items_key) holds the existing pagination and validation, and fetch_blog_chunks() merges the official and community listings.
  • Community posts are title-only documents with 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.
  • The community listing pages through live posts with an offset, so a post published or removed mid-crawl shifts the pages. When the pages don't add up to the announced total, the listing is crawled again (up to 3 times) rather than failing the whole run.

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-embeddings against 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

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>
@mishig25
mishig25 merged commit 4ed6d33 into main Oct 28, 2026
4 checks passed
@mishig25
mishig25 deleted the meilisearch-community-blogs branch October 28, 2026 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant