Typesense

Platform

Open-source, typo-tolerant search engine, self-hosted or on Typesense Cloud

Fiyat
Free tier, then paid
Erişim
API key (you set it when self-hosting)

Hakkında

Search engine written in C++ for instant, typo-tolerant keyword search plus vector, hybrid and geo search over a REST API. Run the GPL-3.0 server yourself as one binary or Docker image, or use Typesense Cloud, which has a free 0.5 GB cluster.

Neler yapabilirsin

  • Add search-as-you-type with typo tolerance, filters and facets to a site or app
  • Combine keyword and vector results in one hybrid search query
  • Keep Algolia InstantSearch widgets and swap in a Typesense backend

Başlarken

  1. Start Typesense with Docker or create a free Typesense Cloud cluster
  2. Create a collection with a schema, then index documents
  3. Search with the q and query_by parameters

Örnek kod

mkdir -p typesense-data
docker run -d -p 8108:8108 -v "$(pwd)/typesense-data:/data" typesense/typesense:30.2 \
  --data-dir /data --api-key=$TYPESENSE_API_KEY
curl "http://localhost:8108/collections" -X POST \
  -H "Content-Type: application/json" -H "X-TYPESENSE-API-KEY: $TYPESENSE_API_KEY" \
  -d '{"name": "companies", "fields": [{"name": "company_name", "type": "string"}]}'
curl "http://localhost:8108/collections/companies/documents" -X POST \
  -H "Content-Type: application/json" -H "X-TYPESENSE-API-KEY: $TYPESENSE_API_KEY" \
  -d '{"company_name": "Stark Industries"}'
curl "http://localhost:8108/collections/companies/documents/search?q=stork&query_by=company_name" \
  -H "X-TYPESENSE-API-KEY: $TYPESENSE_API_KEY"

Ayrıntılar

Barındırma
Hazır hizmet (bulut), Kendi sunucunda
Kullanılabildiği yerler
Tüm dünya
Resmi SDK'lar
JavaScript/TypeScript, Python, Ruby, PHP
MCP sunucusu
Uzak sunucu

Görevler

Alternatifler

Aynı görevler için başka araçlar.

Son kontrol: .