Documentation
¶
Index ¶
- Variables
- func BucketFromPropName(propName string) []byte
- func BucketFromPropNameLSM(propName string) string
- func HashBucketFromPropNameLSM(propName string) string
- func MetaCountProp(propName string) string
- func TokenizeString(in string) []string
- func TokenizeText(in string) []string
- func TokenizeTextKeepWildcards(in string) []string
- func TrimString(in string) string
- type AllowList
Constants ¶
This section is empty.
Variables ¶
var ( ObjectsBucket = []byte("objects") ObjectsBucketLSM = "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 HashBucketFromPropNameLSM ¶
HashBucketFromPropName creates the byte-representation used as the bucket name for the status information of a partiular prop in the inverted index
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 TokenizeString ¶
TokenizeString only splits on white spaces, it does not alter casing
func TokenizeText ¶
Tokenize Text splits on any non-alphanumerical and lowercases the words
func TokenizeTextKeepWildcards ¶
Tokenize Text splits on any non-alphanumerical except wildcard-symbols and lowercases the words
Types ¶
type AllowList ¶
type AllowList map[uint64]struct{}
AllowList groups a list of possible indexIDs to be passed to a secondary index. The secondary index must make sure that it only returns result present on the AllowList
func (AllowList) Contains ¶
Contains is not thread-safe if the list is still being filled. However, if you can guarantee that the list is no longer being inserted into and it effectively becomes read-only, you can safely read concurrently