Documentation
¶
Overview ¶
Package documentsearch finds documents containing wanted terms, orders them by relevance, and reports how many documents matched each term.
Index ¶
- Constants
- func MountSearch(router httpguard.WireRouter, identity nodeidentity.Identity, ...)
- func NewLocalSearcher(index rwi.PostingIndex, urls urlmeta.URLDirectory, matchesPerTerm int) searchcore.Searcher
- func NewLocalSearcherWithDocuments(index rwi.PostingIndex, urls urlmeta.URLDirectory, ...) searchcore.Searcher
- func ProtocolQueryFieldPositions(fields map[string]map[int][]int) []yagoproto.QueryFieldPositions
- type PotentialPeerObserver
- type QueryMatchEvidenceAnalyzer
- type SearchConfig
Constants ¶
View Source
const (
MaximumQueryMatchEvidencePositions = 256
)
Variables ¶
This section is empty.
Functions ¶
func MountSearch ¶
func MountSearch( router httpguard.WireRouter, identity nodeidentity.Identity, config SearchConfig, )
func NewLocalSearcher ¶
func NewLocalSearcher( index rwi.PostingIndex, urls urlmeta.URLDirectory, matchesPerTerm int, ) searchcore.Searcher
func NewLocalSearcherWithDocuments ¶
func NewLocalSearcherWithDocuments( index rwi.PostingIndex, urls urlmeta.URLDirectory, documents documentstore.DocumentDirectory, matchesPerTerm int, ) searchcore.Searcher
func ProtocolQueryFieldPositions ¶
func ProtocolQueryFieldPositions( fields map[string]map[int][]int, ) []yagoproto.QueryFieldPositions
Types ¶
type PotentialPeerObserver ¶
type SearchConfig ¶
type SearchConfig struct {
Index rwi.PostingIndex
Documents urlmeta.URLDirectory
DocumentStore documentstore.DocumentDirectory
AnalyzerSearch searchcore.Searcher
Evidence QueryMatchEvidenceAnalyzer
MatchesPerTerm int
Gate *httpguard.IntakeGate
PotentialPeers PotentialPeerObserver
}
SearchConfig carries the backing stores and limits for the inbound YaCy remote-search endpoint.
Source Files
¶
- document_search.go
- ignored_search_options.go
- index_scan.go
- index_translation.go
- match_reporting.go
- matching_documents.go
- metadata_constraints.go
- metadata_qualified_documents.go
- negotiated_analyzer_recall.go
- negotiated_analyzer_request.go
- query_match_evidence.go
- query_match_evidence_positions.go
- relevance_ordering.go
- relevance_topk.go
- remote_search_limits.go
- search.go
- search_criteria.go
- search_endpoint.go
- search_peer_observation.go
- search_request_operators.go
- search_request_translation.go
- search_resource_word_reference.go
- searchcore_adapter.go
- searchcore_publication_date.go
- term_appearance_criteria.go
- topic_navigation.go
- topic_word_filter.go
Click to show internal directories.
Click to hide internal directories.