Integrate hero_index_server for full-text search #18

Closed
opened 2026-02-09 21:05:42 +00:00 by mik-tf · 1 comment
Owner

Overview

Currently, hero_osis .find() only supports exact-match filtering with client-side fallback (list all + fetch each + filter). This is inefficient and does not support full-text search.

hero_index_server provides Tantivy-based full-text search indexing that can be integrated to enable fast, relevance-ranked search across all marketplace content.

Hero Component

  • Binary: hero_index_server
  • Engine: Tantivy (Rust-native full-text search)
  • Protocol: JSON-RPC
  • Location: lhumina_code/hero_index_server/

Implementation Plan

  1. Add hero_index_server to Docker Compose stack
  2. Create search index schemas for products, services, apps, nodes
  3. Implement index sync on data mutation (create/update/delete)
  4. Add SearchManager trait to ServiceProvider
  5. Wire marketplace search page to use full-text queries
  6. Support faceted filtering (category, price range, status)

Acceptance Criteria

  • Search returns relevance-ranked results
  • Index stays in sync with hero_osis data
  • Search latency < 100ms for typical queries
  • Supports partial matching and typo tolerance

Dependencies

  • Requires Phase 1 complete (all data flows through hero_osis)
## Overview Currently, hero_osis `.find()` only supports exact-match filtering with client-side fallback (list all + fetch each + filter). This is inefficient and does not support full-text search. `hero_index_server` provides Tantivy-based full-text search indexing that can be integrated to enable fast, relevance-ranked search across all marketplace content. ## Hero Component - **Binary**: `hero_index_server` - **Engine**: Tantivy (Rust-native full-text search) - **Protocol**: JSON-RPC - **Location**: `lhumina_code/hero_index_server/` ## Implementation Plan 1. Add `hero_index_server` to Docker Compose stack 2. Create search index schemas for products, services, apps, nodes 3. Implement index sync on data mutation (create/update/delete) 4. Add SearchManager trait to ServiceProvider 5. Wire marketplace search page to use full-text queries 6. Support faceted filtering (category, price range, status) ## Acceptance Criteria - [ ] Search returns relevance-ranked results - [ ] Index stays in sync with hero_osis data - [ ] Search latency < 100ms for typical queries - [ ] Supports partial matching and typo tolerance ## Dependencies - Requires Phase 1 complete (all data flows through hero_osis)
Author
Owner

archived repo, closing

archived repo, closing
Commenting is not possible because the repository is archived.
No description provided.