Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SearchEngine ¶
type SearchEngine struct { Storage *storage.MemoryStorage Logger *logger.Logger }
SearchEngine représente le moteur de recherche
func NewSearchEngine ¶
func NewSearchEngine(storage *storage.MemoryStorage, logger *logger.Logger) *SearchEngine
NewSearchEngine crée une nouvelle instance de SearchEngine
func (*SearchEngine) Search ¶
func (se *SearchEngine) Search(query string, ontologyID string, elementType string, contextSize int, fileID string) ([]SearchResult, error)
Search effectue une recherche dans les ontologies
type SearchResult ¶
type SearchResult struct { OntologyID string ElementName string ElementType string Description string Context string Position int Relevance float64 Contexts []models.JSONContext Source *models.SourceMetadata }
SearchResult représente un résultat de recherche
Click to show internal directories.
Click to hide internal directories.