Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SearchResponse ¶
type SearchResponse struct {
Results []SearchResult
Total int
}
SearchResponse contains search results
type SearchResult ¶
SearchResult represents a single search result
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service provides web search capabilities using metaserp
func NewService ¶
NewService creates a new search service
func (*Service) Search ¶
func (s *Service) Search(ctx context.Context, query string, numResults int) (*SearchResponse, error)
Search performs a web search for the given query
func (*Service) SearchForStatistics ¶
func (s *Service) SearchForStatistics(ctx context.Context, topic string, numResults int) (*SearchResponse, error)
SearchForStatistics performs a search optimized for finding statistics
Click to show internal directories.
Click to hide internal directories.