Search API Documentation

Search API Overview

A Google-like search API for finding content across multiple data types

The Search API provides a simple yet powerful Google-like search experience for WeComplete platform users. It allows searching across all your content and optionally your partner's content with natural language queries.

Key Features

  • Natural language search with keyword matching across all content
  • Search your own content or include your partner's data
  • Filter by content type (moods, events, memories, or all)
  • Smart relevance-based sorting that prioritizes the most relevant matches
  • Clean, structured results with metadata

Search Algorithm

Our search algorithm uses a sophisticated approach inspired by modern search engines:

  1. Breaks down your search query into individual terms
  2. Creates a searchable text index from all content
  3. Matches your search terms against the full content
  4. Calculates relevance scores based on multiple factors:
    • Number of term matches
    • Exact word matches (higher priority)
    • Matches in important fields like titles (highest priority)
  5. Sorts results by relevance score first, then by recency