search

package
v0.0.0-...-2bc625b Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrSearchDisabled = apierrors.InternalError.WithReason("SearchDisabled").New("Search disabled")

Functions

This section is empty.

Types

type Service

type Service struct {
	SearchConfig         *config.SearchConfig
	ElasticsearchService *elasticsearch.Service
	PGSearchService      *pgsearch.Service
}

func (*Service) QueryUser

func (s *Service) QueryUser(
	ctx context.Context,
	searchKeyword string,
	filterOptions user.FilterOptions,
	sortOption user.SortOption,
	pageArgs graphqlutil.PageArgs) ([]apimodel.PageItemRef, *Stats, error)

type Stats

type Stats struct {
	TotalCount *int
}

func StatsFromElasticsearch

func StatsFromElasticsearch(s *elasticsearch.Stats) *Stats

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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