Documentation ¶
Overview ¶
Package grpc provides the Pydio grpc service for querying indexer.
Insertion in the index is not performed directly but via events broadcasted by the broker.
Index ¶
- Variables
- type EventsSubscriber
- type SearchServer
- func (s *SearchServer) CreateNodeChangeSubscriber() *EventsSubscriber
- func (s *SearchServer) NamespacesProvider() *meta.NamespacesProvider
- func (s *SearchServer) ReindexFolder(c context.Context, node *tree.Node, excludes map[string]struct{})
- func (s *SearchServer) Search(ctx context.Context, req *tree.SearchRequest, ...) error
- func (s *SearchServer) TriggerResync(c context.Context, req *protosync.ResyncRequest, ...) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ExposedConfigs = &forms.Form{ I18NBundle: lang.Bundle(), Groups: []*forms.Group{{ Fields: []forms.Field{ &forms.FormField{ Name: "basenameAnalyzer", Type: forms.ParamSelect, Label: "Search.Config.BasenameAnalyze.Label", Description: "Search.Config.BasenameAnalyze.Description", Default: "standard", Mandatory: true, ChoicePresetList: bleveAnalyzers, }, &forms.FormField{ Name: "indexContent", Type: forms.ParamBool, Label: "Search.Config.IndexContent.Label", Description: "Search.Config.IndexContent.Description", Default: false, }, &forms.FormField{ Name: "contentAnalyzer", Type: forms.ParamSelect, Label: "Search.Config.ContentAnalyzer.Label", Description: "Search.Config.ContentAnalyzer.Description", Default: "en", Mandatory: true, ChoicePresetList: bleveAnalyzers, }, }, }}, }
View Source
var (
Name = common.ServiceGrpcNamespace_ + common.ServiceSearch
)
Functions ¶
This section is empty.
Types ¶
type EventsSubscriber ¶
type EventsSubscriber struct {
// contains filtered or unexported fields
}
EventsSubscriber definition
func (*EventsSubscriber) Handle ¶
func (e *EventsSubscriber) Handle(ctx context.Context, msg *tree.NodeChangeEvent) error
Handle the events received and send them to the subscriber
type SearchServer ¶
type SearchServer struct { Engine dao.SearchEngine TreeClient tree.NodeProviderClient NsProvider *meta.NamespacesProvider ReIndexThrottler chan struct{} // contains filtered or unexported fields }
SearchServer implements GRPC server for index/search
func (*SearchServer) CreateNodeChangeSubscriber ¶
func (s *SearchServer) CreateNodeChangeSubscriber() *EventsSubscriber
CreateNodeChangeSubscriber that will treat events for the meta server
func (*SearchServer) NamespacesProvider ¶ added in v1.5.0
func (s *SearchServer) NamespacesProvider() *meta.NamespacesProvider
func (*SearchServer) ReindexFolder ¶ added in v1.5.0
func (*SearchServer) Search ¶
func (s *SearchServer) Search(ctx context.Context, req *tree.SearchRequest, streamer tree.Searcher_SearchStream) error
func (*SearchServer) TriggerResync ¶
func (s *SearchServer) TriggerResync(c context.Context, req *protosync.ResyncRequest, resp *protosync.ResyncResponse) error
Click to show internal directories.
Click to hide internal directories.