add some godocs for the API pagination tokenizer options (#12547)
This commit is contained in:
parent
4078e6ea0e
commit
82027edb2f
|
@ -31,6 +31,29 @@ type CreateIndexGetter interface {
|
|||
}
|
||||
|
||||
// StructsTokenizerOptions is the configuration provided to a StructsTokenizer.
|
||||
//
|
||||
// These are some of the common use cases:
|
||||
// - Structs that can be uniquely identified with only its own ID:
|
||||
//
|
||||
// StructsTokenizerOptions {
|
||||
// WithID: true,
|
||||
// }
|
||||
//
|
||||
// - Structs that are only unique within their namespace:
|
||||
//
|
||||
// StructsTokenizerOptions {
|
||||
// WithID: true,
|
||||
// WithNamespace: true,
|
||||
// }
|
||||
//
|
||||
// - Structs that can be sorted by their create index should also set
|
||||
// `WithCreateIndex` to `true` along with the other options:
|
||||
//
|
||||
// StructsTokenizerOptions {
|
||||
// WithID: true,
|
||||
// WithNamespace: true,
|
||||
// WithCreateIndex: true,
|
||||
// }
|
||||
type StructsTokenizerOptions struct {
|
||||
WithCreateIndex bool
|
||||
WithNamespace bool
|
||||
|
|
Loading…
Reference in New Issue