mirror of
https://github.com/SamyRai/tercul-backend.git
synced 2025-12-27 04:01:34 +00:00
- Implement full-text search service with Weaviate integration - Remove Bleve search implementation - Add GraphQL schema files for search, work, author, and translation - Refactor search domain interfaces - Update Weaviate wrapper with integration tests - Clean up unused search client files
27 lines
485 B
GraphQL
27 lines
485 B
GraphQL
type Query {
|
|
search(query: String!, limit: Int, offset: Int, filters: SearchFilters): SearchResults!
|
|
}
|
|
|
|
input SearchFilters {
|
|
types: [String!]
|
|
languages: [String!]
|
|
categories: [String!]
|
|
tags: [String!]
|
|
authors: [String!]
|
|
dateFrom: String
|
|
dateTo: String
|
|
}
|
|
|
|
type SearchResults {
|
|
items: [SearchResultItem!]!
|
|
total: Int!
|
|
}
|
|
|
|
type SearchResultItem {
|
|
type: String!
|
|
work: Work
|
|
translation: Translation
|
|
author: Author
|
|
score: Float!
|
|
}
|