Versions in this module Expand all Collapse all v0 v0.23.2 Feb 12, 2024 Changes in this version + func EncodeInvertedIndexKey(inKey []byte, lexeme string) []byte + func EncodeInvertedIndexKeys(inKey []byte, vector TSVector) ([][]byte, error) + func EncodeTSQuery(appendTo []byte, query TSQuery) ([]byte, error) + func EncodeTSQueryPGBinary(appendTo []byte, query TSQuery) []byte + func EncodeTSVector(appendTo []byte, vector TSVector) ([]byte, error) + func EncodeTSVectorPGBinary(appendTo []byte, vector TSVector) ([]byte, error) + func EvalTSQuery(q TSQuery, v TSVector) (bool, error) + func GetConfigKey(config string) string + func Rank(weights []float32, v TSVector, q TSQuery, method int) (float32, error) + func TSLexize(config string, token string) (lexeme string, stopWord bool, err error) + func TSParse(input string) []string + func ValidConfig(input string) error + type TSQuery struct + func DecodeTSQuery(b []byte) (ret TSQuery, err error) + func DecodeTSQueryPGBinary(b []byte) (ret TSQuery, err error) + func ParseTSQuery(input string) (TSQuery, error) + func PhraseToTSQuery(config string, input string) (TSQuery, error) + func PlainToTSQuery(config string, input string) (TSQuery, error) + func RandomTSQuery(rng *rand.Rand) TSQuery + func ToTSQuery(config string, input string) (TSQuery, error) + func (q TSQuery) GetInvertedExpr() (expr inverted.Expression, err error) + func (q TSQuery) String() string + type TSVector []tsTerm + func DecodeTSVector(b []byte) (ret TSVector, err error) + func DecodeTSVectorPGBinary(b []byte) (ret TSVector, err error) + func DocumentToTSVector(config string, input string) (TSVector, error) + func ParseTSVector(input string) (TSVector, error) + func RandomTSVector(rng *rand.Rand) TSVector + func (t TSVector) String() string + func (t TSVector) StringSize() int