Proje: Okul Platform · Hub: Okul Platform — Domain

SchoolSearchService

3 tip arama destekliyor:

Okul Araması

$service->search(
    query: 'Bakırköy',
    showTestData: false,  // Admin mi? Test okulları da göster
    limit: 20,
)
// Döner: Collection<SchoolSearchDTO>

Lokasyon Araması

$service->searchLocations(query: 'Bakırköy', limit: 20)
// Döner: Collection<LocationSearchDTO>

Kolej Araması

$service->searchColleges(query: 'Bahçeşehir', showTestData: false, limit: 20)
// Döner: Collection<CollegeSearchDTO>

Repository

SchoolSearchRepositoryInterface → Typesense queries.

Search Controller Parametreleri

  • search_locations: true → Lokasyon araması da yap
  • search_colleges: true → Kolej araması da yap

DTO Tipleri

app/DTO/Search/:

  • SchoolSearchDTO — Okul arama sonucu
  • LocationSearchDTO — Lokasyon arama sonucu
  • CollegeSearchDTO — Kolej arama sonucu