opensearch

package
v0.0.0-...-66acf6f Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2024 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterScore

func FilterScore(score float64) bool

func Local

func Local(mctx libkb.MetaContext, query string, limit int) (res []keybase1.TeamSearchItem, err error)

Local performs a local search for Keybase open teams.

func NormalizeLastActive

func NormalizeLastActive(minHrs, maxHrs float64, lastActive keybase1.Time) float64

func Remote

func Remote(mctx libkb.MetaContext, query string, limit int) ([]keybase1.TeamSearchItem, error)

func ScoreDescription

func ScoreDescription(desc, qtok string) (score float64)

func ScoreName

func ScoreName(name, qtok string) (score float64)

Types

type RankedSearchItem

type RankedSearchItem interface {
	Score(query string) float64
	String() string
}

Jump to

Keyboard shortcuts

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