@@ -218,6 +218,7 @@ type AggregateBuilder struct {
218
218
}
219
219
220
220
// NewAggregateBuilder creates a new AggregateBuilder for FT.AGGREGATE commands.
221
+ // EXPERIMENTAL: this API is subject to change, use with caution.
221
222
func (c * Client ) NewAggregateBuilder (ctx context.Context , index , query string ) * AggregateBuilder {
222
223
return & AggregateBuilder {c : c , ctx : ctx , index : index , query : query , options : & FTAggregateOptions {LimitOffset : - 1 }}
223
224
}
@@ -360,7 +361,8 @@ func (b *AggregateBuilder) Run() (*FTAggregateResult, error) {
360
361
// ----------------------
361
362
// CreateIndexBuilder for FT.CREATE
362
363
// ----------------------
363
-
364
+ // CreateIndexBuilder is builder for FT.CREATE
365
+ // EXPERIMENTAL: this API is subject to change, use with caution.
364
366
type CreateIndexBuilder struct {
365
367
c * Client
366
368
ctx context.Context
@@ -370,6 +372,7 @@ type CreateIndexBuilder struct {
370
372
}
371
373
372
374
// NewCreateIndexBuilder creates a new CreateIndexBuilder for FT.CREATE commands.
375
+ // EXPERIMENTAL: this API is subject to change, use with caution.
373
376
func (c * Client ) NewCreateIndexBuilder (ctx context.Context , index string ) * CreateIndexBuilder {
374
377
return & CreateIndexBuilder {c : c , ctx : ctx , index : index , options : & FTCreateOptions {}}
375
378
}
@@ -467,7 +470,8 @@ func (b *CreateIndexBuilder) Run() (string, error) {
467
470
// ----------------------
468
471
// DropIndexBuilder for FT.DROPINDEX
469
472
// ----------------------
470
-
473
+ // DropIndexBuilder is a builder for FT.DROPINDEX
474
+ // EXPERIMENTAL: this API is subject to change, use with caution.
471
475
type DropIndexBuilder struct {
472
476
c * Client
473
477
ctx context.Context
@@ -476,6 +480,7 @@ type DropIndexBuilder struct {
476
480
}
477
481
478
482
// NewDropIndexBuilder creates a new DropIndexBuilder for FT.DROPINDEX commands.
483
+ // EXPERIMENTAL: this API is subject to change, use with caution.
479
484
func (c * Client ) NewDropIndexBuilder (ctx context.Context , index string ) * DropIndexBuilder {
480
485
return & DropIndexBuilder {c : c , ctx : ctx , index : index }
481
486
}
@@ -492,7 +497,8 @@ func (b *DropIndexBuilder) Run() (string, error) {
492
497
// ----------------------
493
498
// AliasBuilder for FT.ALIAS* commands
494
499
// ----------------------
495
-
500
+ // AliasBuilder is builder for FT.ALIAS* commands
501
+ // EXPERIMENTAL: this API is subject to change, use with caution.
496
502
type AliasBuilder struct {
497
503
c * Client
498
504
ctx context.Context
@@ -502,6 +508,7 @@ type AliasBuilder struct {
502
508
}
503
509
504
510
// NewAliasBuilder creates a new AliasBuilder for FT.ALIAS* commands.
511
+ // EXPERIMENTAL: this API is subject to change, use with caution.
505
512
func (c * Client ) NewAliasBuilder (ctx context.Context , alias string ) * AliasBuilder {
506
513
return & AliasBuilder {c : c , ctx : ctx , alias : alias }
507
514
}
@@ -551,7 +558,8 @@ func (b *AliasBuilder) Run() (string, error) {
551
558
// ----------------------
552
559
// ExplainBuilder for FT.EXPLAIN
553
560
// ----------------------
554
-
561
+ // ExplainBuilder is builder for FT.EXPLAIN
562
+ // EXPERIMENTAL: this API is subject to change, use with caution.
555
563
type ExplainBuilder struct {
556
564
c * Client
557
565
ctx context.Context
@@ -561,6 +569,7 @@ type ExplainBuilder struct {
561
569
}
562
570
563
571
// NewExplainBuilder creates a new ExplainBuilder for FT.EXPLAIN commands.
572
+ // EXPERIMENTAL: this API is subject to change, use with caution.
564
573
func (c * Client ) NewExplainBuilder (ctx context.Context , index , query string ) * ExplainBuilder {
565
574
return & ExplainBuilder {c : c , ctx : ctx , index : index , query : query , options : & FTExplainOptions {}}
566
575
}
@@ -598,7 +607,8 @@ func (b *FTInfoBuilder) Run() (FTInfoResult, error) {
598
607
// ----------------------
599
608
// SpellCheckBuilder for FT.SPELLCHECK
600
609
// ----------------------
601
-
610
+ // SpellCheckBuilder is builder for FT.SPELLCHECK
611
+ // EXPERIMENTAL: this API is subject to change, use with caution.
602
612
type SpellCheckBuilder struct {
603
613
c * Client
604
614
ctx context.Context
@@ -608,6 +618,7 @@ type SpellCheckBuilder struct {
608
618
}
609
619
610
620
// NewSpellCheckBuilder creates a new SpellCheckBuilder for FT.SPELLCHECK commands.
621
+ // EXPERIMENTAL: this API is subject to change, use with caution.
611
622
func (c * Client ) NewSpellCheckBuilder (ctx context.Context , index , query string ) * SpellCheckBuilder {
612
623
return & SpellCheckBuilder {c : c , ctx : ctx , index : index , query : query , options : & FTSpellCheckOptions {}}
613
624
}
@@ -642,7 +653,8 @@ func (b *SpellCheckBuilder) Run() ([]SpellCheckResult, error) {
642
653
// ----------------------
643
654
// DictBuilder for FT.DICT* commands
644
655
// ----------------------
645
-
656
+ // DictBuilder is builder for FT.DICT* commands
657
+ // EXPERIMENTAL: this API is subject to change, use with caution.
646
658
type DictBuilder struct {
647
659
c * Client
648
660
ctx context.Context
@@ -652,6 +664,7 @@ type DictBuilder struct {
652
664
}
653
665
654
666
// NewDictBuilder creates a new DictBuilder for FT.DICT* commands.
667
+ // EXPERIMENTAL: this API is subject to change, use with caution.
655
668
func (c * Client ) NewDictBuilder (ctx context.Context , dict string ) * DictBuilder {
656
669
return & DictBuilder {c : c , ctx : ctx , dict : dict }
657
670
}
@@ -701,7 +714,8 @@ func (b *DictBuilder) Run() (interface{}, error) {
701
714
// ----------------------
702
715
// TagValsBuilder for FT.TAGVALS
703
716
// ----------------------
704
-
717
+ // TagValsBuilder is builder for FT.TAGVALS
718
+ // EXPERIMENTAL: this API is subject to change, use with caution.
705
719
type TagValsBuilder struct {
706
720
c * Client
707
721
ctx context.Context
@@ -710,6 +724,7 @@ type TagValsBuilder struct {
710
724
}
711
725
712
726
// NewTagValsBuilder creates a new TagValsBuilder for FT.TAGVALS commands.
727
+ // EXPERIMENTAL: this API is subject to change, use with caution.
713
728
func (c * Client ) NewTagValsBuilder (ctx context.Context , index , field string ) * TagValsBuilder {
714
729
return & TagValsBuilder {c : c , ctx : ctx , index : index , field : field }
715
730
}
@@ -723,7 +738,8 @@ func (b *TagValsBuilder) Run() ([]string, error) {
723
738
// ----------------------
724
739
// CursorBuilder for FT.CURSOR*
725
740
// ----------------------
726
-
741
+ // CursorBuilder is builder for FT.CURSOR* commands
742
+ // EXPERIMENTAL: this API is subject to change, use with caution.
727
743
type CursorBuilder struct {
728
744
c * Client
729
745
ctx context.Context
@@ -734,6 +750,7 @@ type CursorBuilder struct {
734
750
}
735
751
736
752
// NewCursorBuilder creates a new CursorBuilder for FT.CURSOR* commands.
753
+ // EXPERIMENTAL: this API is subject to change, use with caution.
737
754
func (c * Client ) NewCursorBuilder (ctx context.Context , index string , cursorId int64 ) * CursorBuilder {
738
755
return & CursorBuilder {c : c , ctx : ctx , index : index , cursorId : cursorId }
739
756
}
@@ -775,7 +792,8 @@ func (b *CursorBuilder) Run() (interface{}, error) {
775
792
// ----------------------
776
793
// SynUpdateBuilder for FT.SYNUPDATE
777
794
// ----------------------
778
-
795
+ // SyncUpdateBuilder is builder for FT.SYNCUPDATE
796
+ // EXPERIMENTAL: this API is subject to change, use with caution.
779
797
type SynUpdateBuilder struct {
780
798
c * Client
781
799
ctx context.Context
@@ -786,6 +804,7 @@ type SynUpdateBuilder struct {
786
804
}
787
805
788
806
// NewSynUpdateBuilder creates a new SynUpdateBuilder for FT.SYNUPDATE commands.
807
+ // EXPERIMENTAL: this API is subject to change, use with caution.
789
808
func (c * Client ) NewSynUpdateBuilder (ctx context.Context , index string , groupId interface {}) * SynUpdateBuilder {
790
809
return & SynUpdateBuilder {c : c , ctx : ctx , index : index , groupId : groupId , options : & FTSynUpdateOptions {}}
791
810
}
0 commit comments