Search Types

Overview of all search modes: BM25, semantic vector, hybrid, NLP, voice, image, and geo search.

Search Modes

ModeEndpointAI CreditsDescription
BM25 (Keyword)POST /search0Traditional keyword matching. Set use_semantic: false
Hybrid (BM25 + Vector)POST /search2Default mode. Combines keyword with semantic vector similarity
Similar ItemsPOST /search/similar0Find items similar to a given entity using More Like This
Advanced SearchPOST /search/advanced0-5Full control over filters, facets, geo, date ranges, price ranges
AutocompleteGET /search/autocomplete0Prefix-based suggestions as user types
Voice SearchPOST /search/voice5Audio transcription (STT) then semantic search
Image SearchPOST /search/image5Image analysis then semantic search on extracted text
NLP SearchPOST /search/nlp3Natural language understanding with intent extraction
Geo SearchPOST /search/geo0Location-based search within a geographic radius

Entity Types

Searchable Entities

The search service indexes 5 entity types across dedicated OpenSearch indices.

Entity TypeIndex NameSource Service
eventeventzr-eventsevent-svc
venueeventzr-venuesvenue-svc
artisteventzr-artiststalent-svc
destinationeventzr-destinationsdestination-svc
brandeventzr-brandsbrand-svc

Examples

Keyword search (no AI credits)bash
curl -X POST "$API/search/v1/search" \
  -H "Authorization: Bearer $TOKEN" \
  -H "x-tenant-id: $TENANT_ID" \
  -H "Content-Type: application/json" \
  -d '{
    "query": "music festival",
    "entity_type": "event",
    "use_semantic": false,
    "limit": 10
  }'
Hybrid search (2 AI credits)bash
curl -X POST "$API/search/v1/search" \
  -H "Authorization: Bearer $TOKEN" \
  -H "x-tenant-id: $TENANT_ID" \
  -H "Content-Type: application/json" \
  -d '{
    "query": "outdoor concert near the beach",
    "use_semantic": true,
    "include_facets": true
  }'
Find similar eventsbash
curl -X POST "$API/search/v1/search/similar" \
  -H "Authorization: Bearer $TOKEN" \
  -H "x-tenant-id: $TENANT_ID" \
  -H "Content-Type: application/json" \
  -d '{
    "item_id": "event-uuid-here",
    "entity_type": "event",
    "limit": 5,
    "min_score": 0.5
  }'
Geo search (venues within 10km)bash
curl -X POST "$API/search/v1/search/geo" \
  -H "Authorization: Bearer $TOKEN" \
  -H "x-tenant-id: $TENANT_ID" \
  -H "Content-Type: application/json" \
  -d '{
    "lat": 19.076,
    "lng": 72.8777,
    "radius_km": 10,
    "entity_type": "venue"
  }'

Hybrid Search Configuration

ParameterDefaultDescription
bm25_weight0.6Weight for BM25 keyword score in hybrid ranking
vector_weight0.4Weight for vector similarity score in hybrid ranking
min_score0.1Minimum combined score threshold for results
rrf_k60Reciprocal Rank Fusion smoothing constant