- Merged main branch improvements (better search structure with SearchResultItem)
- Added SearchAlpha config parameter for hybrid search tuning (default: 0.7)
- Updated NewWeaviateWrapper to accept host and searchAlpha parameters
- Fixed all type mismatches in mocks and tests
- Updated GraphQL resolver to use new SearchResults structure
- All tests and vet checks passing
This commit implements the full-text search service using Weaviate. It replaces the stub implementation with a fully functional search service that supports hybrid and BM25 search modes.
The new implementation includes:
- Support for hybrid and BM25 search modes.
- Transformation of Weaviate search results into domain entities.
- Unit tests using a mock Weaviate wrapper to ensure the implementation is correct and to avoid environmental issues in the test pipeline.