search

package
v0.1.27 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2025 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type QueryExpansion added in v0.1.13

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

QueryExpansion query expansion involves evaluating a user's input (what words were typed into the search query area) and expanding the search query to match additional results, see https://en.wikipedia.org/wiki/Query_expansion

func NewQueryExpansion added in v0.1.13

func NewQueryExpansion(rewritesFile, synonymsFile string) (*QueryExpansion, error)

func (QueryExpansion) Expand added in v0.1.13

func (s QueryExpansion) Expand(ctx context.Context, searchTerms string) (*domain.SearchQuery, error)

Expand Perform query expansion, see https://en.wikipedia.org/wiki/Query_expansion

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

func NewSearch

func NewSearch(e *engine.Engine, dbConn string, searchIndex string, searchIndexSrid int, rewritesFile string, synonymsFile string, rankNormalization int, exactMatchMultiplier float64, primarySuggestMultiplier float64, rankThreshold int, preRankLimitMultiplier int) (*Search, error)

func (*Search) Search

func (s *Search) Search() http.HandlerFunc

Search autosuggest locations based on user input

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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