search

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: MIT Imports: 5 Imported by: 0

README

Search Module

Defines a common search domain and provides controllers to render search result and autosuggest.

The module also offers a pagination util, that can be used to pass pagination data to the interfaces.

Domain Layer

  • A Search can return Results of different types. So a Document in a search result may be a "Product" or anything else
    • SearchService->Search(Filter) returns Map of Results (by type)
    • Document
Secondary Ports
  • The SearchService needs to be implemented
  • Please note that a Document is defined as an interface and can be "anything". This way the search can be used very generic and can return documents of any type (e.g. products, categories, content, brands etc).

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Module

type Module struct{}

Module registers our search package

func (*Module) Configure

func (m *Module) Configure(injector *dingo.Injector)

Configure the search URL

func (*Module) CueConfig

func (*Module) CueConfig() string

CueConfig defines the prefixrouter configuration

func (*Module) FlamingoLegacyConfigAlias

func (*Module) FlamingoLegacyConfigAlias() map[string]string

FlamingoLegacyConfigAlias mapping

Directories

Path Synopsis
Package application in the search module provides a more explicit access to the domain searchservice, and combines the result with Paginations etc.
Package application in the search module provides a more explicit access to the domain searchservice, and combines the result with Paginations etc.

Jump to

Keyboard shortcuts

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