Documentation
¶
Index ¶
- Variables
- func BucketFromPropName(propName string) []byte
- func BucketFromPropNameLSM(propName string) string
- func BucketFromPropNameLengthLSM(propName string) string
- func BucketFromPropNameNullLSM(propName string) string
- func CountDuplicates(parts []string) ([]string, []int)
- func HashBucketFromPropNameLSM(propName string) string
- func HashBucketFromPropNameLengthLSM(propName string) string
- func HashBucketFromPropNameNullLSM(propName string) string
- func MetaCountProp(propName string) string
- func TempBucketFromBucketName(bucketName string) string
- func TokenizeString(in string) []string
- func TokenizeStringAndCountDuplicates(in string) ([]string, []int)
- func TokenizeText(in string) []string
- func TokenizeTextAndCountDuplicates(in string) ([]string, []int)
- func TokenizeTextKeepWildcards(in string) []string
- func TrimString(in string) string
- type AllowList
- type AllowListIterator
Constants ¶
This section is empty.
Variables ¶
var ( ObjectsBucket = []byte("objects") ObjectsBucketLSM = "objects" CompressedObjectsBucketLSM = "compressed_objects" DimensionsBucketLSM = "dimensions" DocIDBucket = []byte("doc_ids") )
Functions ¶
func BucketFromPropName ¶
BucketFromPropName creates the byte-representation used as the bucket name for a partiular prop in the inverted index
func BucketFromPropNameLSM ¶
BucketFromPropName creates the byte-representation used as the bucket name for a partiular prop in the inverted index
func BucketFromPropNameLengthLSM ¶ added in v1.18.0
func BucketFromPropNameNullLSM ¶ added in v1.18.0
func CountDuplicates ¶ added in v1.18.0
func HashBucketFromPropNameLSM ¶
HashBucketFromPropName creates the byte-representation used as the bucket name for the status information of a partiular prop in the inverted index
func HashBucketFromPropNameLengthLSM ¶ added in v1.18.0
func HashBucketFromPropNameNullLSM ¶ added in v1.18.0
func MetaCountProp ¶
MetaCountProp helps create an internally used propName for meta props that don't explicitly exist in the user schema, but are required for proper indexing, such as the count of arrays.
func TempBucketFromBucketName ¶ added in v1.18.0
func TokenizeString ¶
TokenizeString only splits on white spaces, it does not alter casing
func TokenizeStringAndCountDuplicates ¶ added in v1.18.0
func TokenizeText ¶
Tokenize Text splits on any non-alphanumerical and lowercases the words
func TokenizeTextAndCountDuplicates ¶ added in v1.18.0
func TokenizeTextKeepWildcards ¶
Tokenize Text splits on any non-alphanumerical except wildcard-symbols and lowercases the words
Types ¶
type AllowList ¶
type AllowList interface { Insert(ids ...uint64) Contains(id uint64) bool DeepCopy() AllowList Slice() []uint64 Len() int IsEmpty() bool Size() uint64 Iterator() AllowListIterator LimitedIterator(limit int) AllowListIterator }