grouper

package
v1.24.10 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Grouper

type Grouper struct {
	// contains filtered or unexported fields
}

Grouper groups or merges search results by how related they are

func New

func New(logger logrus.FieldLogger) *Grouper

NewGrouper creates a Grouper UC from the specified configuration

func (*Grouper) Group

func (g *Grouper) Group(in []search.Result, strategy string,
	force float32,
) ([]search.Result, error)

Group using the applied strategy and force

Jump to

Keyboard shortcuts

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