Documentation ¶
Index ¶
- func AppQueryToTsquery(str string) string
- func Tokenize(str string) [][]string
- func TokenizeFlat(str string) []string
- type Operator
- type Token
- type TokenValue
- type Tsvector
- func (v Tsvector) AddText(text string, weight TsvectorWeight)
- func (v Tsvector) Copy() Tsvector
- func (Tsvector) GormDataType() string
- func (v Tsvector) GormValue(context.Context, *gorm.DB) clause.Expr
- func (v *Tsvector) Scan(val interface{}) error
- func (v Tsvector) String() string
- func (Tsvector) Value() (driver.Value, error)
- type TsvectorLabel
- type TsvectorWeight
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppQueryToTsquery ¶
func TokenizeFlat ¶
Types ¶
type Tsvector ¶
type Tsvector map[string]map[int]TsvectorWeight
func ParseTsvector ¶
func (Tsvector) AddText ¶
func (v Tsvector) AddText(text string, weight TsvectorWeight)
func (Tsvector) GormDataType ¶
type TsvectorLabel ¶
type TsvectorLabel struct { Position int Weight TsvectorWeight }
type TsvectorWeight ¶
type TsvectorWeight rune
const ( TsvectorWeightA TsvectorWeight = 'A' TsvectorWeightB TsvectorWeight = 'B' TsvectorWeightC TsvectorWeight = 'C' TsvectorWeightD TsvectorWeight = 'D' )
Click to show internal directories.
Click to hide internal directories.