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 ¶
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, preRankWordCountCutoff int, synonymsExactMatch bool) (*Search, error)
func (*Search) Search ¶
func (s *Search) Search() http.HandlerFunc
Search autosuggest locations based on user input
Click to show internal directories.
Click to hide internal directories.