Skip to content

(feat/search-index) Separate service#2271

Merged
nickscamara merged 2 commits intomainfrom
nsc/search-index-service
Oct 12, 2025
Merged

(feat/search-index) Separate service#2271
nickscamara merged 2 commits intomainfrom
nsc/search-index-service

Conversation

@nickscamara
Copy link
Copy Markdown
Member

@nickscamara nickscamara commented Oct 12, 2025

Summary by cubic

Moved search indexing to a standalone service and integrated a new HTTP client. The API now queries the search service, and the scraper sends documents to it asynchronously.

  • New Features

    • Added SearchIndexClient (HTTP) with search, index, stats, and health endpoints.
    • Updated v2 search controller to call the service and return its SearchResponse.
    • Scraper transformer now sends documents to the service via indexDocumentIfEnabled.
    • Added a health check for the search service in the indexing worker.
  • Migration

    • Set SEARCH_SERVICE_URL and ENABLE_SEARCH_INDEX=true; optionally set SEARCH_SERVICE_API_SECRET.
    • Remove old SEARCH_INDEX_SUPABASE_* env reliance; worker no longer processes the search-index queue.
    • If not configured, the search endpoint returns 503 and indexing is skipped (non-blocking).

@nickscamara
Copy link
Copy Markdown
Member Author

@cubic review

@cubic-dev-ai
Copy link
Copy Markdown
Contributor

cubic-dev-ai Bot commented Oct 12, 2025

@cubic review

@nickscamara I've started the AI code review. It'll take a few minutes to complete.

Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 4 files

@nickscamara nickscamara merged commit 7418322 into main Oct 12, 2025
3 of 5 checks passed
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