search

package
v0.0.0-...-d0daf6a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 19, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL