From db6fa061bfdbd4396347ae358b4e62bb29412476 Mon Sep 17 00:00:00 2001 From: Rueian Date: Sun, 22 Jan 2023 22:09:37 +0800 Subject: [PATCH] feat: make `LOAD` of `FT.SEARCH` to be reentrantable --- hack/cmds/commands_search.json | 50 ++-- internal/cmds/gen.go | 435 +++++++++++++++++++++++---------- internal/cmds/gen_test.go | 356 +++++++++++++-------------- 3 files changed, 508 insertions(+), 333 deletions(-) diff --git a/hack/cmds/commands_search.json b/hack/cmds/commands_search.json index 5baa83c0..714b231d 100644 --- a/hack/cmds/commands_search.json +++ b/hack/cmds/commands_search.json @@ -1177,37 +1177,12 @@ "VERBATIM" ] }, - { - "name": "load", - "type": "block", - "optional": true, - "block": [ - { - "name": "count", - "type": "string", - "command": "LOAD" - }, - { - "name": "field", - "type": "string", - "multiple": true - } - ] - }, { "name": "timeout", "type": "integer", "optional": true, "command": "TIMEOUT" }, - { - "name": "loadall", - "type": "enum", - "optional": true, - "enum": [ - "LOAD *" - ] - }, { "comment": "https://github.com/rueian/rueidis/issues/57", "name": "op", @@ -1215,6 +1190,31 @@ "optional": true, "multiple": true, "block": [ + { + "name": "loadall", + "type": "enum", + "optional": true, + "enum": [ + "LOAD *" + ] + }, + { + "name": "load", + "type": "block", + "optional": true, + "block": [ + { + "name": "count", + "type": "integer", + "command": "LOAD" + }, + { + "name": "field", + "type": "string", + "multiple": true + } + ] + }, { "name": "groupby", "type": "block", diff --git a/internal/cmds/gen.go b/internal/cmds/gen.go index 1a59eb98..a6bd562c 100644 --- a/internal/cmds/gen.go +++ b/internal/cmds/gen.go @@ -6784,120 +6784,6 @@ func (c FtAggregateIndex) Query(query string) FtAggregateQuery { return (FtAggregateQuery)(c) } -type FtAggregateLoadField Completed - -func (c FtAggregateLoadField) Field(field ...string) FtAggregateLoadField { - c.cs.s = append(c.cs.s, field...) - return c -} - -func (c FtAggregateLoadField) Timeout(timeout int64) FtAggregateTimeout { - c.cs.s = append(c.cs.s, "TIMEOUT", strconv.FormatInt(timeout, 10)) - return (FtAggregateTimeout)(c) -} - -func (c FtAggregateLoadField) LoadAll() FtAggregateLoadallLoadAll { - c.cs.s = append(c.cs.s, "LOAD", "*") - return (FtAggregateLoadallLoadAll)(c) -} - -func (c FtAggregateLoadField) Groupby(nargs int64) FtAggregateOpGroupbyGroupby { - c.cs.s = append(c.cs.s, "GROUPBY", strconv.FormatInt(nargs, 10)) - return (FtAggregateOpGroupbyGroupby)(c) -} - -func (c FtAggregateLoadField) Sortby(nargs int64) FtAggregateOpSortbySortby { - c.cs.s = append(c.cs.s, "SORTBY", strconv.FormatInt(nargs, 10)) - return (FtAggregateOpSortbySortby)(c) -} - -func (c FtAggregateLoadField) Apply(expression string) FtAggregateOpApplyApply { - c.cs.s = append(c.cs.s, "APPLY", expression) - return (FtAggregateOpApplyApply)(c) -} - -func (c FtAggregateLoadField) Limit() FtAggregateOpLimitLimit { - c.cs.s = append(c.cs.s, "LIMIT") - return (FtAggregateOpLimitLimit)(c) -} - -func (c FtAggregateLoadField) Filter(filter string) FtAggregateOpFilter { - c.cs.s = append(c.cs.s, "FILTER", filter) - return (FtAggregateOpFilter)(c) -} - -func (c FtAggregateLoadField) Withcursor() FtAggregateCursorWithcursor { - c.cs.s = append(c.cs.s, "WITHCURSOR") - return (FtAggregateCursorWithcursor)(c) -} - -func (c FtAggregateLoadField) Params() FtAggregateParamsParams { - c.cs.s = append(c.cs.s, "PARAMS") - return (FtAggregateParamsParams)(c) -} - -func (c FtAggregateLoadField) Dialect(dialect int64) FtAggregateDialect { - c.cs.s = append(c.cs.s, "DIALECT", strconv.FormatInt(dialect, 10)) - return (FtAggregateDialect)(c) -} - -func (c FtAggregateLoadField) Build() Completed { - return Completed(c) -} - -type FtAggregateLoadLoad Completed - -func (c FtAggregateLoadLoad) Field(field ...string) FtAggregateLoadField { - c.cs.s = append(c.cs.s, field...) - return (FtAggregateLoadField)(c) -} - -type FtAggregateLoadallLoadAll Completed - -func (c FtAggregateLoadallLoadAll) Groupby(nargs int64) FtAggregateOpGroupbyGroupby { - c.cs.s = append(c.cs.s, "GROUPBY", strconv.FormatInt(nargs, 10)) - return (FtAggregateOpGroupbyGroupby)(c) -} - -func (c FtAggregateLoadallLoadAll) Sortby(nargs int64) FtAggregateOpSortbySortby { - c.cs.s = append(c.cs.s, "SORTBY", strconv.FormatInt(nargs, 10)) - return (FtAggregateOpSortbySortby)(c) -} - -func (c FtAggregateLoadallLoadAll) Apply(expression string) FtAggregateOpApplyApply { - c.cs.s = append(c.cs.s, "APPLY", expression) - return (FtAggregateOpApplyApply)(c) -} - -func (c FtAggregateLoadallLoadAll) Limit() FtAggregateOpLimitLimit { - c.cs.s = append(c.cs.s, "LIMIT") - return (FtAggregateOpLimitLimit)(c) -} - -func (c FtAggregateLoadallLoadAll) Filter(filter string) FtAggregateOpFilter { - c.cs.s = append(c.cs.s, "FILTER", filter) - return (FtAggregateOpFilter)(c) -} - -func (c FtAggregateLoadallLoadAll) Withcursor() FtAggregateCursorWithcursor { - c.cs.s = append(c.cs.s, "WITHCURSOR") - return (FtAggregateCursorWithcursor)(c) -} - -func (c FtAggregateLoadallLoadAll) Params() FtAggregateParamsParams { - c.cs.s = append(c.cs.s, "PARAMS") - return (FtAggregateParamsParams)(c) -} - -func (c FtAggregateLoadallLoadAll) Dialect(dialect int64) FtAggregateDialect { - c.cs.s = append(c.cs.s, "DIALECT", strconv.FormatInt(dialect, 10)) - return (FtAggregateDialect)(c) -} - -func (c FtAggregateLoadallLoadAll) Build() Completed { - return Completed(c) -} - type FtAggregateOpApplyApply Completed func (c FtAggregateOpApplyApply) As(name string) FtAggregateOpApplyAs { @@ -6922,6 +6808,16 @@ func (c FtAggregateOpApplyAs) Filter(filter string) FtAggregateOpFilter { return (FtAggregateOpFilter)(c) } +func (c FtAggregateOpApplyAs) LoadAll() FtAggregateOpLoadallLoadAll { + c.cs.s = append(c.cs.s, "LOAD", "*") + return (FtAggregateOpLoadallLoadAll)(c) +} + +func (c FtAggregateOpApplyAs) Load(count int64) FtAggregateOpLoadLoad { + c.cs.s = append(c.cs.s, "LOAD", strconv.FormatInt(count, 10)) + return (FtAggregateOpLoadLoad)(c) +} + func (c FtAggregateOpApplyAs) Groupby(nargs int64) FtAggregateOpGroupbyGroupby { c.cs.s = append(c.cs.s, "GROUPBY", strconv.FormatInt(nargs, 10)) return (FtAggregateOpGroupbyGroupby)(c) @@ -6953,6 +6849,16 @@ func (c FtAggregateOpApplyAs) Build() Completed { type FtAggregateOpFilter Completed +func (c FtAggregateOpFilter) LoadAll() FtAggregateOpLoadallLoadAll { + c.cs.s = append(c.cs.s, "LOAD", "*") + return (FtAggregateOpLoadallLoadAll)(c) +} + +func (c FtAggregateOpFilter) Load(count int64) FtAggregateOpLoadLoad { + c.cs.s = append(c.cs.s, "LOAD", strconv.FormatInt(count, 10)) + return (FtAggregateOpLoadLoad)(c) +} + func (c FtAggregateOpFilter) Groupby(nargs int64) FtAggregateOpGroupbyGroupby { c.cs.s = append(c.cs.s, "GROUPBY", strconv.FormatInt(nargs, 10)) return (FtAggregateOpGroupbyGroupby)(c) @@ -7034,6 +6940,16 @@ func (c FtAggregateOpGroupbyGroupby) Filter(filter string) FtAggregateOpFilter { return (FtAggregateOpFilter)(c) } +func (c FtAggregateOpGroupbyGroupby) LoadAll() FtAggregateOpLoadallLoadAll { + c.cs.s = append(c.cs.s, "LOAD", "*") + return (FtAggregateOpLoadallLoadAll)(c) +} + +func (c FtAggregateOpGroupbyGroupby) Load(count int64) FtAggregateOpLoadLoad { + c.cs.s = append(c.cs.s, "LOAD", strconv.FormatInt(count, 10)) + return (FtAggregateOpLoadLoad)(c) +} + func (c FtAggregateOpGroupbyGroupby) Withcursor() FtAggregateCursorWithcursor { c.cs.s = append(c.cs.s, "WITHCURSOR") return (FtAggregateCursorWithcursor)(c) @@ -7090,6 +7006,16 @@ func (c FtAggregateOpGroupbyProperty) Filter(filter string) FtAggregateOpFilter return (FtAggregateOpFilter)(c) } +func (c FtAggregateOpGroupbyProperty) LoadAll() FtAggregateOpLoadallLoadAll { + c.cs.s = append(c.cs.s, "LOAD", "*") + return (FtAggregateOpLoadallLoadAll)(c) +} + +func (c FtAggregateOpGroupbyProperty) Load(count int64) FtAggregateOpLoadLoad { + c.cs.s = append(c.cs.s, "LOAD", strconv.FormatInt(count, 10)) + return (FtAggregateOpLoadLoad)(c) +} + func (c FtAggregateOpGroupbyProperty) Withcursor() FtAggregateCursorWithcursor { c.cs.s = append(c.cs.s, "WITHCURSOR") return (FtAggregateCursorWithcursor)(c) @@ -7166,6 +7092,16 @@ func (c FtAggregateOpGroupbyReduceArg) Filter(filter string) FtAggregateOpFilter return (FtAggregateOpFilter)(c) } +func (c FtAggregateOpGroupbyReduceArg) LoadAll() FtAggregateOpLoadallLoadAll { + c.cs.s = append(c.cs.s, "LOAD", "*") + return (FtAggregateOpLoadallLoadAll)(c) +} + +func (c FtAggregateOpGroupbyReduceArg) Load(count int64) FtAggregateOpLoadLoad { + c.cs.s = append(c.cs.s, "LOAD", strconv.FormatInt(count, 10)) + return (FtAggregateOpLoadLoad)(c) +} + func (c FtAggregateOpGroupbyReduceArg) Withcursor() FtAggregateCursorWithcursor { c.cs.s = append(c.cs.s, "WITHCURSOR") return (FtAggregateCursorWithcursor)(c) @@ -7232,6 +7168,16 @@ func (c FtAggregateOpGroupbyReduceAs) Filter(filter string) FtAggregateOpFilter return (FtAggregateOpFilter)(c) } +func (c FtAggregateOpGroupbyReduceAs) LoadAll() FtAggregateOpLoadallLoadAll { + c.cs.s = append(c.cs.s, "LOAD", "*") + return (FtAggregateOpLoadallLoadAll)(c) +} + +func (c FtAggregateOpGroupbyReduceAs) Load(count int64) FtAggregateOpLoadLoad { + c.cs.s = append(c.cs.s, "LOAD", strconv.FormatInt(count, 10)) + return (FtAggregateOpLoadLoad)(c) +} + func (c FtAggregateOpGroupbyReduceAs) Withcursor() FtAggregateCursorWithcursor { c.cs.s = append(c.cs.s, "WITHCURSOR") return (FtAggregateCursorWithcursor)(c) @@ -7293,6 +7239,16 @@ func (c FtAggregateOpGroupbyReduceBy) Filter(filter string) FtAggregateOpFilter return (FtAggregateOpFilter)(c) } +func (c FtAggregateOpGroupbyReduceBy) LoadAll() FtAggregateOpLoadallLoadAll { + c.cs.s = append(c.cs.s, "LOAD", "*") + return (FtAggregateOpLoadallLoadAll)(c) +} + +func (c FtAggregateOpGroupbyReduceBy) Load(count int64) FtAggregateOpLoadLoad { + c.cs.s = append(c.cs.s, "LOAD", strconv.FormatInt(count, 10)) + return (FtAggregateOpLoadLoad)(c) +} + func (c FtAggregateOpGroupbyReduceBy) Withcursor() FtAggregateCursorWithcursor { c.cs.s = append(c.cs.s, "WITHCURSOR") return (FtAggregateCursorWithcursor)(c) @@ -7369,6 +7325,16 @@ func (c FtAggregateOpGroupbyReduceNargs) Filter(filter string) FtAggregateOpFilt return (FtAggregateOpFilter)(c) } +func (c FtAggregateOpGroupbyReduceNargs) LoadAll() FtAggregateOpLoadallLoadAll { + c.cs.s = append(c.cs.s, "LOAD", "*") + return (FtAggregateOpLoadallLoadAll)(c) +} + +func (c FtAggregateOpGroupbyReduceNargs) Load(count int64) FtAggregateOpLoadLoad { + c.cs.s = append(c.cs.s, "LOAD", strconv.FormatInt(count, 10)) + return (FtAggregateOpLoadLoad)(c) +} + func (c FtAggregateOpGroupbyReduceNargs) Withcursor() FtAggregateCursorWithcursor { c.cs.s = append(c.cs.s, "WITHCURSOR") return (FtAggregateCursorWithcursor)(c) @@ -7420,6 +7386,16 @@ func (c FtAggregateOpGroupbyReduceOrderAsc) Filter(filter string) FtAggregateOpF return (FtAggregateOpFilter)(c) } +func (c FtAggregateOpGroupbyReduceOrderAsc) LoadAll() FtAggregateOpLoadallLoadAll { + c.cs.s = append(c.cs.s, "LOAD", "*") + return (FtAggregateOpLoadallLoadAll)(c) +} + +func (c FtAggregateOpGroupbyReduceOrderAsc) Load(count int64) FtAggregateOpLoadLoad { + c.cs.s = append(c.cs.s, "LOAD", strconv.FormatInt(count, 10)) + return (FtAggregateOpLoadLoad)(c) +} + func (c FtAggregateOpGroupbyReduceOrderAsc) Withcursor() FtAggregateCursorWithcursor { c.cs.s = append(c.cs.s, "WITHCURSOR") return (FtAggregateCursorWithcursor)(c) @@ -7471,6 +7447,16 @@ func (c FtAggregateOpGroupbyReduceOrderDesc) Filter(filter string) FtAggregateOp return (FtAggregateOpFilter)(c) } +func (c FtAggregateOpGroupbyReduceOrderDesc) LoadAll() FtAggregateOpLoadallLoadAll { + c.cs.s = append(c.cs.s, "LOAD", "*") + return (FtAggregateOpLoadallLoadAll)(c) +} + +func (c FtAggregateOpGroupbyReduceOrderDesc) Load(count int64) FtAggregateOpLoadLoad { + c.cs.s = append(c.cs.s, "LOAD", strconv.FormatInt(count, 10)) + return (FtAggregateOpLoadLoad)(c) +} + func (c FtAggregateOpGroupbyReduceOrderDesc) Withcursor() FtAggregateCursorWithcursor { c.cs.s = append(c.cs.s, "WITHCURSOR") return (FtAggregateCursorWithcursor)(c) @@ -7511,6 +7497,16 @@ func (c FtAggregateOpLimitOffsetNum) Filter(filter string) FtAggregateOpFilter { return (FtAggregateOpFilter)(c) } +func (c FtAggregateOpLimitOffsetNum) LoadAll() FtAggregateOpLoadallLoadAll { + c.cs.s = append(c.cs.s, "LOAD", "*") + return (FtAggregateOpLoadallLoadAll)(c) +} + +func (c FtAggregateOpLimitOffsetNum) Load(count int64) FtAggregateOpLoadLoad { + c.cs.s = append(c.cs.s, "LOAD", strconv.FormatInt(count, 10)) + return (FtAggregateOpLoadLoad)(c) +} + func (c FtAggregateOpLimitOffsetNum) Groupby(nargs int64) FtAggregateOpGroupbyGroupby { c.cs.s = append(c.cs.s, "GROUPBY", strconv.FormatInt(nargs, 10)) return (FtAggregateOpGroupbyGroupby)(c) @@ -7550,6 +7546,130 @@ func (c FtAggregateOpLimitOffsetNum) Build() Completed { return Completed(c) } +type FtAggregateOpLoadField Completed + +func (c FtAggregateOpLoadField) Field(field ...string) FtAggregateOpLoadField { + c.cs.s = append(c.cs.s, field...) + return c +} + +func (c FtAggregateOpLoadField) Groupby(nargs int64) FtAggregateOpGroupbyGroupby { + c.cs.s = append(c.cs.s, "GROUPBY", strconv.FormatInt(nargs, 10)) + return (FtAggregateOpGroupbyGroupby)(c) +} + +func (c FtAggregateOpLoadField) Sortby(nargs int64) FtAggregateOpSortbySortby { + c.cs.s = append(c.cs.s, "SORTBY", strconv.FormatInt(nargs, 10)) + return (FtAggregateOpSortbySortby)(c) +} + +func (c FtAggregateOpLoadField) Apply(expression string) FtAggregateOpApplyApply { + c.cs.s = append(c.cs.s, "APPLY", expression) + return (FtAggregateOpApplyApply)(c) +} + +func (c FtAggregateOpLoadField) Limit() FtAggregateOpLimitLimit { + c.cs.s = append(c.cs.s, "LIMIT") + return (FtAggregateOpLimitLimit)(c) +} + +func (c FtAggregateOpLoadField) Filter(filter string) FtAggregateOpFilter { + c.cs.s = append(c.cs.s, "FILTER", filter) + return (FtAggregateOpFilter)(c) +} + +func (c FtAggregateOpLoadField) LoadAll() FtAggregateOpLoadallLoadAll { + c.cs.s = append(c.cs.s, "LOAD", "*") + return (FtAggregateOpLoadallLoadAll)(c) +} + +func (c FtAggregateOpLoadField) Load(count int64) FtAggregateOpLoadLoad { + c.cs.s = append(c.cs.s, "LOAD", strconv.FormatInt(count, 10)) + return (FtAggregateOpLoadLoad)(c) +} + +func (c FtAggregateOpLoadField) Withcursor() FtAggregateCursorWithcursor { + c.cs.s = append(c.cs.s, "WITHCURSOR") + return (FtAggregateCursorWithcursor)(c) +} + +func (c FtAggregateOpLoadField) Params() FtAggregateParamsParams { + c.cs.s = append(c.cs.s, "PARAMS") + return (FtAggregateParamsParams)(c) +} + +func (c FtAggregateOpLoadField) Dialect(dialect int64) FtAggregateDialect { + c.cs.s = append(c.cs.s, "DIALECT", strconv.FormatInt(dialect, 10)) + return (FtAggregateDialect)(c) +} + +func (c FtAggregateOpLoadField) Build() Completed { + return Completed(c) +} + +type FtAggregateOpLoadLoad Completed + +func (c FtAggregateOpLoadLoad) Field(field ...string) FtAggregateOpLoadField { + c.cs.s = append(c.cs.s, field...) + return (FtAggregateOpLoadField)(c) +} + +type FtAggregateOpLoadallLoadAll Completed + +func (c FtAggregateOpLoadallLoadAll) Load(count int64) FtAggregateOpLoadLoad { + c.cs.s = append(c.cs.s, "LOAD", strconv.FormatInt(count, 10)) + return (FtAggregateOpLoadLoad)(c) +} + +func (c FtAggregateOpLoadallLoadAll) Groupby(nargs int64) FtAggregateOpGroupbyGroupby { + c.cs.s = append(c.cs.s, "GROUPBY", strconv.FormatInt(nargs, 10)) + return (FtAggregateOpGroupbyGroupby)(c) +} + +func (c FtAggregateOpLoadallLoadAll) Sortby(nargs int64) FtAggregateOpSortbySortby { + c.cs.s = append(c.cs.s, "SORTBY", strconv.FormatInt(nargs, 10)) + return (FtAggregateOpSortbySortby)(c) +} + +func (c FtAggregateOpLoadallLoadAll) Apply(expression string) FtAggregateOpApplyApply { + c.cs.s = append(c.cs.s, "APPLY", expression) + return (FtAggregateOpApplyApply)(c) +} + +func (c FtAggregateOpLoadallLoadAll) Limit() FtAggregateOpLimitLimit { + c.cs.s = append(c.cs.s, "LIMIT") + return (FtAggregateOpLimitLimit)(c) +} + +func (c FtAggregateOpLoadallLoadAll) Filter(filter string) FtAggregateOpFilter { + c.cs.s = append(c.cs.s, "FILTER", filter) + return (FtAggregateOpFilter)(c) +} + +func (c FtAggregateOpLoadallLoadAll) LoadAll() FtAggregateOpLoadallLoadAll { + c.cs.s = append(c.cs.s, "LOAD", "*") + return c +} + +func (c FtAggregateOpLoadallLoadAll) Withcursor() FtAggregateCursorWithcursor { + c.cs.s = append(c.cs.s, "WITHCURSOR") + return (FtAggregateCursorWithcursor)(c) +} + +func (c FtAggregateOpLoadallLoadAll) Params() FtAggregateParamsParams { + c.cs.s = append(c.cs.s, "PARAMS") + return (FtAggregateParamsParams)(c) +} + +func (c FtAggregateOpLoadallLoadAll) Dialect(dialect int64) FtAggregateDialect { + c.cs.s = append(c.cs.s, "DIALECT", strconv.FormatInt(dialect, 10)) + return (FtAggregateDialect)(c) +} + +func (c FtAggregateOpLoadallLoadAll) Build() Completed { + return Completed(c) +} + type FtAggregateOpSortbyFieldsOrderAsc Completed func (c FtAggregateOpSortbyFieldsOrderAsc) Property(property string) FtAggregateOpSortbyFieldsProperty { @@ -7577,6 +7697,16 @@ func (c FtAggregateOpSortbyFieldsOrderAsc) Filter(filter string) FtAggregateOpFi return (FtAggregateOpFilter)(c) } +func (c FtAggregateOpSortbyFieldsOrderAsc) LoadAll() FtAggregateOpLoadallLoadAll { + c.cs.s = append(c.cs.s, "LOAD", "*") + return (FtAggregateOpLoadallLoadAll)(c) +} + +func (c FtAggregateOpSortbyFieldsOrderAsc) Load(count int64) FtAggregateOpLoadLoad { + c.cs.s = append(c.cs.s, "LOAD", strconv.FormatInt(count, 10)) + return (FtAggregateOpLoadLoad)(c) +} + func (c FtAggregateOpSortbyFieldsOrderAsc) Groupby(nargs int64) FtAggregateOpGroupbyGroupby { c.cs.s = append(c.cs.s, "GROUPBY", strconv.FormatInt(nargs, 10)) return (FtAggregateOpGroupbyGroupby)(c) @@ -7633,6 +7763,16 @@ func (c FtAggregateOpSortbyFieldsOrderDesc) Filter(filter string) FtAggregateOpF return (FtAggregateOpFilter)(c) } +func (c FtAggregateOpSortbyFieldsOrderDesc) LoadAll() FtAggregateOpLoadallLoadAll { + c.cs.s = append(c.cs.s, "LOAD", "*") + return (FtAggregateOpLoadallLoadAll)(c) +} + +func (c FtAggregateOpSortbyFieldsOrderDesc) Load(count int64) FtAggregateOpLoadLoad { + c.cs.s = append(c.cs.s, "LOAD", strconv.FormatInt(count, 10)) + return (FtAggregateOpLoadLoad)(c) +} + func (c FtAggregateOpSortbyFieldsOrderDesc) Groupby(nargs int64) FtAggregateOpGroupbyGroupby { c.cs.s = append(c.cs.s, "GROUPBY", strconv.FormatInt(nargs, 10)) return (FtAggregateOpGroupbyGroupby)(c) @@ -7699,6 +7839,16 @@ func (c FtAggregateOpSortbyFieldsProperty) Filter(filter string) FtAggregateOpFi return (FtAggregateOpFilter)(c) } +func (c FtAggregateOpSortbyFieldsProperty) LoadAll() FtAggregateOpLoadallLoadAll { + c.cs.s = append(c.cs.s, "LOAD", "*") + return (FtAggregateOpLoadallLoadAll)(c) +} + +func (c FtAggregateOpSortbyFieldsProperty) Load(count int64) FtAggregateOpLoadLoad { + c.cs.s = append(c.cs.s, "LOAD", strconv.FormatInt(count, 10)) + return (FtAggregateOpLoadLoad)(c) +} + func (c FtAggregateOpSortbyFieldsProperty) Groupby(nargs int64) FtAggregateOpGroupbyGroupby { c.cs.s = append(c.cs.s, "GROUPBY", strconv.FormatInt(nargs, 10)) return (FtAggregateOpGroupbyGroupby)(c) @@ -7745,6 +7895,16 @@ func (c FtAggregateOpSortbyMax) Filter(filter string) FtAggregateOpFilter { return (FtAggregateOpFilter)(c) } +func (c FtAggregateOpSortbyMax) LoadAll() FtAggregateOpLoadallLoadAll { + c.cs.s = append(c.cs.s, "LOAD", "*") + return (FtAggregateOpLoadallLoadAll)(c) +} + +func (c FtAggregateOpSortbyMax) Load(count int64) FtAggregateOpLoadLoad { + c.cs.s = append(c.cs.s, "LOAD", strconv.FormatInt(count, 10)) + return (FtAggregateOpLoadLoad)(c) +} + func (c FtAggregateOpSortbyMax) Groupby(nargs int64) FtAggregateOpGroupbyGroupby { c.cs.s = append(c.cs.s, "GROUPBY", strconv.FormatInt(nargs, 10)) return (FtAggregateOpGroupbyGroupby)(c) @@ -7801,6 +7961,16 @@ func (c FtAggregateOpSortbySortby) Filter(filter string) FtAggregateOpFilter { return (FtAggregateOpFilter)(c) } +func (c FtAggregateOpSortbySortby) LoadAll() FtAggregateOpLoadallLoadAll { + c.cs.s = append(c.cs.s, "LOAD", "*") + return (FtAggregateOpLoadallLoadAll)(c) +} + +func (c FtAggregateOpSortbySortby) Load(count int64) FtAggregateOpLoadLoad { + c.cs.s = append(c.cs.s, "LOAD", strconv.FormatInt(count, 10)) + return (FtAggregateOpLoadLoad)(c) +} + func (c FtAggregateOpSortbySortby) Groupby(nargs int64) FtAggregateOpGroupbyGroupby { c.cs.s = append(c.cs.s, "GROUPBY", strconv.FormatInt(nargs, 10)) return (FtAggregateOpGroupbyGroupby)(c) @@ -7866,19 +8036,19 @@ func (c FtAggregateQuery) Verbatim() FtAggregateVerbatim { return (FtAggregateVerbatim)(c) } -func (c FtAggregateQuery) Load(count string) FtAggregateLoadLoad { - c.cs.s = append(c.cs.s, "LOAD", count) - return (FtAggregateLoadLoad)(c) -} - func (c FtAggregateQuery) Timeout(timeout int64) FtAggregateTimeout { c.cs.s = append(c.cs.s, "TIMEOUT", strconv.FormatInt(timeout, 10)) return (FtAggregateTimeout)(c) } -func (c FtAggregateQuery) LoadAll() FtAggregateLoadallLoadAll { +func (c FtAggregateQuery) LoadAll() FtAggregateOpLoadallLoadAll { c.cs.s = append(c.cs.s, "LOAD", "*") - return (FtAggregateLoadallLoadAll)(c) + return (FtAggregateOpLoadallLoadAll)(c) +} + +func (c FtAggregateQuery) Load(count int64) FtAggregateOpLoadLoad { + c.cs.s = append(c.cs.s, "LOAD", strconv.FormatInt(count, 10)) + return (FtAggregateOpLoadLoad)(c) } func (c FtAggregateQuery) Groupby(nargs int64) FtAggregateOpGroupbyGroupby { @@ -7927,9 +8097,14 @@ func (c FtAggregateQuery) Build() Completed { type FtAggregateTimeout Completed -func (c FtAggregateTimeout) LoadAll() FtAggregateLoadallLoadAll { +func (c FtAggregateTimeout) LoadAll() FtAggregateOpLoadallLoadAll { c.cs.s = append(c.cs.s, "LOAD", "*") - return (FtAggregateLoadallLoadAll)(c) + return (FtAggregateOpLoadallLoadAll)(c) +} + +func (c FtAggregateTimeout) Load(count int64) FtAggregateOpLoadLoad { + c.cs.s = append(c.cs.s, "LOAD", strconv.FormatInt(count, 10)) + return (FtAggregateOpLoadLoad)(c) } func (c FtAggregateTimeout) Groupby(nargs int64) FtAggregateOpGroupbyGroupby { @@ -7978,19 +8153,19 @@ func (c FtAggregateTimeout) Build() Completed { type FtAggregateVerbatim Completed -func (c FtAggregateVerbatim) Load(count string) FtAggregateLoadLoad { - c.cs.s = append(c.cs.s, "LOAD", count) - return (FtAggregateLoadLoad)(c) -} - func (c FtAggregateVerbatim) Timeout(timeout int64) FtAggregateTimeout { c.cs.s = append(c.cs.s, "TIMEOUT", strconv.FormatInt(timeout, 10)) return (FtAggregateTimeout)(c) } -func (c FtAggregateVerbatim) LoadAll() FtAggregateLoadallLoadAll { +func (c FtAggregateVerbatim) LoadAll() FtAggregateOpLoadallLoadAll { c.cs.s = append(c.cs.s, "LOAD", "*") - return (FtAggregateLoadallLoadAll)(c) + return (FtAggregateOpLoadallLoadAll)(c) +} + +func (c FtAggregateVerbatim) Load(count int64) FtAggregateOpLoadLoad { + c.cs.s = append(c.cs.s, "LOAD", strconv.FormatInt(count, 10)) + return (FtAggregateOpLoadLoad)(c) } func (c FtAggregateVerbatim) Groupby(nargs int64) FtAggregateOpGroupbyGroupby { diff --git a/internal/cmds/gen_test.go b/internal/cmds/gen_test.go index 336eb884..6644a021 100644 --- a/internal/cmds/gen_test.go +++ b/internal/cmds/gen_test.go @@ -1304,42 +1304,7 @@ func tc12(s Builder, t *testing.T) { s.Flushdb().Async().Build() s.Flushdb().Sync().Build() s.Flushdb().Build() - s.FtAggregate().Index("1").Query("1").Verbatim().Load("1").Field("1").Field("1").Timeout(1).LoadAll().Build() - s.FtAggregate().Index("1").Query("1").Verbatim().Load("1").Field("1").Field("1").Timeout(1).Groupby(1).Build() - s.FtAggregate().Index("1").Query("1").Verbatim().Load("1").Field("1").Field("1").Timeout(1).Sortby(1).Build() - s.FtAggregate().Index("1").Query("1").Verbatim().Load("1").Field("1").Field("1").Timeout(1).Filter("1").Build() - s.FtAggregate().Index("1").Query("1").Verbatim().Load("1").Field("1").Field("1").Timeout(1).Withcursor().Build() - s.FtAggregate().Index("1").Query("1").Verbatim().Load("1").Field("1").Field("1").Timeout(1).Dialect(1).Build() - s.FtAggregate().Index("1").Query("1").Verbatim().Load("1").Field("1").Field("1").Timeout(1).Build() - s.FtAggregate().Index("1").Query("1").Verbatim().Load("1").Field("1").Field("1").LoadAll().Groupby(1).Build() - s.FtAggregate().Index("1").Query("1").Verbatim().Load("1").Field("1").Field("1").LoadAll().Sortby(1).Build() - s.FtAggregate().Index("1").Query("1").Verbatim().Load("1").Field("1").Field("1").LoadAll().Filter("1").Build() - s.FtAggregate().Index("1").Query("1").Verbatim().Load("1").Field("1").Field("1").LoadAll().Withcursor().Build() - s.FtAggregate().Index("1").Query("1").Verbatim().Load("1").Field("1").Field("1").LoadAll().Dialect(1).Build() - s.FtAggregate().Index("1").Query("1").Verbatim().Load("1").Field("1").Field("1").LoadAll().Build() - s.FtAggregate().Index("1").Query("1").Verbatim().Load("1").Field("1").Field("1").Groupby(1).Property("1").Property("1").Build() - s.FtAggregate().Index("1").Query("1").Verbatim().Load("1").Field("1").Field("1").Groupby(1).Sortby(1).Build() - s.FtAggregate().Index("1").Query("1").Verbatim().Load("1").Field("1").Field("1").Groupby(1).Filter("1").Build() - s.FtAggregate().Index("1").Query("1").Verbatim().Load("1").Field("1").Field("1").Groupby(1).Withcursor().Build() - s.FtAggregate().Index("1").Query("1").Verbatim().Load("1").Field("1").Field("1").Groupby(1).Dialect(1).Build() - s.FtAggregate().Index("1").Query("1").Verbatim().Load("1").Field("1").Field("1").Groupby(1).Build() - s.FtAggregate().Index("1").Query("1").Verbatim().Load("1").Field("1").Field("1").Sortby(1).Property("1").Build() - s.FtAggregate().Index("1").Query("1").Verbatim().Load("1").Field("1").Field("1").Sortby(1).Max(1).Build() - s.FtAggregate().Index("1").Query("1").Verbatim().Load("1").Field("1").Field("1").Sortby(1).Filter("1").Build() - s.FtAggregate().Index("1").Query("1").Verbatim().Load("1").Field("1").Field("1").Sortby(1).Withcursor().Build() - s.FtAggregate().Index("1").Query("1").Verbatim().Load("1").Field("1").Field("1").Sortby(1).Dialect(1).Build() - s.FtAggregate().Index("1").Query("1").Verbatim().Load("1").Field("1").Field("1").Sortby(1).Build() - s.FtAggregate().Index("1").Query("1").Verbatim().Load("1").Field("1").Field("1").Apply("1").As("1").Build() - s.FtAggregate().Index("1").Query("1").Verbatim().Load("1").Field("1").Field("1").Limit().OffsetNum(1, 1).Build() - s.FtAggregate().Index("1").Query("1").Verbatim().Load("1").Field("1").Field("1").Filter("1").Withcursor().Build() - s.FtAggregate().Index("1").Query("1").Verbatim().Load("1").Field("1").Field("1").Filter("1").Dialect(1).Build() - s.FtAggregate().Index("1").Query("1").Verbatim().Load("1").Field("1").Field("1").Filter("1").Build() - s.FtAggregate().Index("1").Query("1").Verbatim().Load("1").Field("1").Field("1").Withcursor().Count(1).Build() - s.FtAggregate().Index("1").Query("1").Verbatim().Load("1").Field("1").Field("1").Withcursor().Maxidle(1).Build() - s.FtAggregate().Index("1").Query("1").Verbatim().Load("1").Field("1").Field("1").Withcursor().Dialect(1).Build() - s.FtAggregate().Index("1").Query("1").Verbatim().Load("1").Field("1").Field("1").Withcursor().Build() - s.FtAggregate().Index("1").Query("1").Verbatim().Load("1").Field("1").Field("1").Dialect(1).Build() - s.FtAggregate().Index("1").Query("1").Verbatim().Load("1").Field("1").Field("1").Build() + s.FtAggregate().Index("1").Query("1").Verbatim().Timeout(1).LoadAll().Load(1).Field("1").Field("1").Build() s.FtAggregate().Index("1").Query("1").Verbatim().Timeout(1).LoadAll().Groupby(1).Property("1").Property("1").Build() s.FtAggregate().Index("1").Query("1").Verbatim().Timeout(1).LoadAll().Groupby(1).Sortby(1).Build() s.FtAggregate().Index("1").Query("1").Verbatim().Timeout(1).LoadAll().Groupby(1).Filter("1").Build() @@ -1363,6 +1328,12 @@ func tc12(s Builder, t *testing.T) { s.FtAggregate().Index("1").Query("1").Verbatim().Timeout(1).LoadAll().Withcursor().Build() s.FtAggregate().Index("1").Query("1").Verbatim().Timeout(1).LoadAll().Dialect(1).Build() s.FtAggregate().Index("1").Query("1").Verbatim().Timeout(1).LoadAll().Build() + s.FtAggregate().Index("1").Query("1").Verbatim().Timeout(1).Load(1).Field("1").Field("1").Groupby(1).Build() + s.FtAggregate().Index("1").Query("1").Verbatim().Timeout(1).Load(1).Field("1").Field("1").Sortby(1).Build() + s.FtAggregate().Index("1").Query("1").Verbatim().Timeout(1).Load(1).Field("1").Field("1").Filter("1").Build() + s.FtAggregate().Index("1").Query("1").Verbatim().Timeout(1).Load(1).Field("1").Field("1").Withcursor().Build() + s.FtAggregate().Index("1").Query("1").Verbatim().Timeout(1).Load(1).Field("1").Field("1").Dialect(1).Build() + s.FtAggregate().Index("1").Query("1").Verbatim().Timeout(1).Load(1).Field("1").Field("1").Build() s.FtAggregate().Index("1").Query("1").Verbatim().Timeout(1).Groupby(1).Property("1").Property("1").Sortby(1).Build() s.FtAggregate().Index("1").Query("1").Verbatim().Timeout(1).Groupby(1).Property("1").Property("1").Filter("1").Build() s.FtAggregate().Index("1").Query("1").Verbatim().Timeout(1).Groupby(1).Property("1").Property("1").Withcursor().Build() @@ -1381,9 +1352,6 @@ func tc12(s Builder, t *testing.T) { s.FtAggregate().Index("1").Query("1").Verbatim().Timeout(1).Groupby(1).Filter("1").Dialect(1).Build() s.FtAggregate().Index("1").Query("1").Verbatim().Timeout(1).Groupby(1).Filter("1").Build() s.FtAggregate().Index("1").Query("1").Verbatim().Timeout(1).Groupby(1).Withcursor().Count(1).Build() -} - -func tc13(s Builder, t *testing.T) { s.FtAggregate().Index("1").Query("1").Verbatim().Timeout(1).Groupby(1).Withcursor().Maxidle(1).Build() s.FtAggregate().Index("1").Query("1").Verbatim().Timeout(1).Groupby(1).Withcursor().Dialect(1).Build() s.FtAggregate().Index("1").Query("1").Verbatim().Timeout(1).Groupby(1).Withcursor().Build() @@ -1413,6 +1381,9 @@ func tc13(s Builder, t *testing.T) { s.FtAggregate().Index("1").Query("1").Verbatim().Timeout(1).Sortby(1).Build() s.FtAggregate().Index("1").Query("1").Verbatim().Timeout(1).Apply("1").As("1").Filter("1").Build() s.FtAggregate().Index("1").Query("1").Verbatim().Timeout(1).Apply("1").As("1").Withcursor().Build() +} + +func tc13(s Builder, t *testing.T) { s.FtAggregate().Index("1").Query("1").Verbatim().Timeout(1).Apply("1").As("1").Dialect(1).Build() s.FtAggregate().Index("1").Query("1").Verbatim().Timeout(1).Apply("1").As("1").Build() s.FtAggregate().Index("1").Query("1").Verbatim().Timeout(1).Limit().OffsetNum(1, 1).Filter("1").Build() @@ -1435,6 +1406,12 @@ func tc13(s Builder, t *testing.T) { s.FtAggregate().Index("1").Query("1").Verbatim().Timeout(1).Params().Nargs(1).NameValue().NameValue("1", "1").NameValue("1", "1").Build() s.FtAggregate().Index("1").Query("1").Verbatim().Timeout(1).Dialect(1).Build() s.FtAggregate().Index("1").Query("1").Verbatim().Timeout(1).Build() + s.FtAggregate().Index("1").Query("1").Verbatim().LoadAll().Load(1).Field("1").Field("1").Groupby(1).Build() + s.FtAggregate().Index("1").Query("1").Verbatim().LoadAll().Load(1).Field("1").Field("1").Sortby(1).Build() + s.FtAggregate().Index("1").Query("1").Verbatim().LoadAll().Load(1).Field("1").Field("1").Filter("1").Build() + s.FtAggregate().Index("1").Query("1").Verbatim().LoadAll().Load(1).Field("1").Field("1").Withcursor().Build() + s.FtAggregate().Index("1").Query("1").Verbatim().LoadAll().Load(1).Field("1").Field("1").Dialect(1).Build() + s.FtAggregate().Index("1").Query("1").Verbatim().LoadAll().Load(1).Field("1").Field("1").Build() s.FtAggregate().Index("1").Query("1").Verbatim().LoadAll().Groupby(1).Property("1").Property("1").Sortby(1).Build() s.FtAggregate().Index("1").Query("1").Verbatim().LoadAll().Groupby(1).Property("1").Property("1").Filter("1").Build() s.FtAggregate().Index("1").Query("1").Verbatim().LoadAll().Groupby(1).Property("1").Property("1").Withcursor().Build() @@ -1484,9 +1461,6 @@ func tc13(s Builder, t *testing.T) { s.FtAggregate().Index("1").Query("1").Verbatim().LoadAll().Apply("1").As("1").Withcursor().Build() s.FtAggregate().Index("1").Query("1").Verbatim().LoadAll().Apply("1").As("1").Dialect(1).Build() s.FtAggregate().Index("1").Query("1").Verbatim().LoadAll().Apply("1").As("1").Build() -} - -func tc14(s Builder, t *testing.T) { s.FtAggregate().Index("1").Query("1").Verbatim().LoadAll().Limit().OffsetNum(1, 1).Filter("1").Build() s.FtAggregate().Index("1").Query("1").Verbatim().LoadAll().Limit().OffsetNum(1, 1).Withcursor().Build() s.FtAggregate().Index("1").Query("1").Verbatim().LoadAll().Limit().OffsetNum(1, 1).Dialect(1).Build() @@ -1507,6 +1481,32 @@ func tc14(s Builder, t *testing.T) { s.FtAggregate().Index("1").Query("1").Verbatim().LoadAll().Params().Nargs(1).NameValue().NameValue("1", "1").NameValue("1", "1").Build() s.FtAggregate().Index("1").Query("1").Verbatim().LoadAll().Dialect(1).Build() s.FtAggregate().Index("1").Query("1").Verbatim().LoadAll().Build() + s.FtAggregate().Index("1").Query("1").Verbatim().Load(1).Field("1").Field("1").Groupby(1).Property("1").Property("1").Build() + s.FtAggregate().Index("1").Query("1").Verbatim().Load(1).Field("1").Field("1").Groupby(1).Sortby(1).Build() + s.FtAggregate().Index("1").Query("1").Verbatim().Load(1).Field("1").Field("1").Groupby(1).Filter("1").Build() +} + +func tc14(s Builder, t *testing.T) { + s.FtAggregate().Index("1").Query("1").Verbatim().Load(1).Field("1").Field("1").Groupby(1).Withcursor().Build() + s.FtAggregate().Index("1").Query("1").Verbatim().Load(1).Field("1").Field("1").Groupby(1).Dialect(1).Build() + s.FtAggregate().Index("1").Query("1").Verbatim().Load(1).Field("1").Field("1").Groupby(1).Build() + s.FtAggregate().Index("1").Query("1").Verbatim().Load(1).Field("1").Field("1").Sortby(1).Property("1").Build() + s.FtAggregate().Index("1").Query("1").Verbatim().Load(1).Field("1").Field("1").Sortby(1).Max(1).Build() + s.FtAggregate().Index("1").Query("1").Verbatim().Load(1).Field("1").Field("1").Sortby(1).Filter("1").Build() + s.FtAggregate().Index("1").Query("1").Verbatim().Load(1).Field("1").Field("1").Sortby(1).Withcursor().Build() + s.FtAggregate().Index("1").Query("1").Verbatim().Load(1).Field("1").Field("1").Sortby(1).Dialect(1).Build() + s.FtAggregate().Index("1").Query("1").Verbatim().Load(1).Field("1").Field("1").Sortby(1).Build() + s.FtAggregate().Index("1").Query("1").Verbatim().Load(1).Field("1").Field("1").Apply("1").As("1").Build() + s.FtAggregate().Index("1").Query("1").Verbatim().Load(1).Field("1").Field("1").Limit().OffsetNum(1, 1).Build() + s.FtAggregate().Index("1").Query("1").Verbatim().Load(1).Field("1").Field("1").Filter("1").Withcursor().Build() + s.FtAggregate().Index("1").Query("1").Verbatim().Load(1).Field("1").Field("1").Filter("1").Dialect(1).Build() + s.FtAggregate().Index("1").Query("1").Verbatim().Load(1).Field("1").Field("1").Filter("1").Build() + s.FtAggregate().Index("1").Query("1").Verbatim().Load(1).Field("1").Field("1").Withcursor().Count(1).Build() + s.FtAggregate().Index("1").Query("1").Verbatim().Load(1).Field("1").Field("1").Withcursor().Maxidle(1).Build() + s.FtAggregate().Index("1").Query("1").Verbatim().Load(1).Field("1").Field("1").Withcursor().Dialect(1).Build() + s.FtAggregate().Index("1").Query("1").Verbatim().Load(1).Field("1").Field("1").Withcursor().Build() + s.FtAggregate().Index("1").Query("1").Verbatim().Load(1).Field("1").Field("1").Dialect(1).Build() + s.FtAggregate().Index("1").Query("1").Verbatim().Load(1).Field("1").Field("1").Build() s.FtAggregate().Index("1").Query("1").Verbatim().Groupby(1).Property("1").Property("1").Reduce("1").Nargs(1).Build() s.FtAggregate().Index("1").Query("1").Verbatim().Groupby(1).Property("1").Property("1").Sortby(1).Property("1").Build() s.FtAggregate().Index("1").Query("1").Verbatim().Groupby(1).Property("1").Property("1").Sortby(1).Max(1).Build() @@ -1686,133 +1686,15 @@ func tc15(s Builder, t *testing.T) { s.FtAggregate().Index("1").Query("1").Verbatim().Params().Nargs(1).NameValue().NameValue("1", "1").NameValue("1", "1").Build() s.FtAggregate().Index("1").Query("1").Verbatim().Dialect(1).Build() s.FtAggregate().Index("1").Query("1").Verbatim().Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").Timeout(1).LoadAll().Groupby(1).Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").Timeout(1).LoadAll().Sortby(1).Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").Timeout(1).LoadAll().Filter("1").Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").Timeout(1).LoadAll().Withcursor().Build() + s.FtAggregate().Index("1").Query("1").Timeout(1).LoadAll().Load(1).Field("1").Field("1").Groupby(1).Build() + s.FtAggregate().Index("1").Query("1").Timeout(1).LoadAll().Load(1).Field("1").Field("1").Sortby(1).Build() + s.FtAggregate().Index("1").Query("1").Timeout(1).LoadAll().Load(1).Field("1").Field("1").Filter("1").Build() + s.FtAggregate().Index("1").Query("1").Timeout(1).LoadAll().Load(1).Field("1").Field("1").Withcursor().Build() } func tc16(s Builder, t *testing.T) { - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").Timeout(1).LoadAll().Dialect(1).Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").Timeout(1).LoadAll().Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").Timeout(1).Groupby(1).Property("1").Property("1").Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").Timeout(1).Groupby(1).Sortby(1).Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").Timeout(1).Groupby(1).Filter("1").Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").Timeout(1).Groupby(1).Withcursor().Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").Timeout(1).Groupby(1).Dialect(1).Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").Timeout(1).Groupby(1).Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").Timeout(1).Sortby(1).Property("1").Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").Timeout(1).Sortby(1).Max(1).Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").Timeout(1).Sortby(1).Filter("1").Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").Timeout(1).Sortby(1).Withcursor().Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").Timeout(1).Sortby(1).Dialect(1).Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").Timeout(1).Sortby(1).Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").Timeout(1).Apply("1").As("1").Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").Timeout(1).Limit().OffsetNum(1, 1).Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").Timeout(1).Filter("1").Withcursor().Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").Timeout(1).Filter("1").Dialect(1).Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").Timeout(1).Filter("1").Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").Timeout(1).Withcursor().Count(1).Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").Timeout(1).Withcursor().Maxidle(1).Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").Timeout(1).Withcursor().Dialect(1).Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").Timeout(1).Withcursor().Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").Timeout(1).Dialect(1).Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").Timeout(1).Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").LoadAll().Groupby(1).Property("1").Property("1").Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").LoadAll().Groupby(1).Sortby(1).Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").LoadAll().Groupby(1).Filter("1").Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").LoadAll().Groupby(1).Withcursor().Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").LoadAll().Groupby(1).Dialect(1).Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").LoadAll().Groupby(1).Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").LoadAll().Sortby(1).Property("1").Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").LoadAll().Sortby(1).Max(1).Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").LoadAll().Sortby(1).Filter("1").Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").LoadAll().Sortby(1).Withcursor().Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").LoadAll().Sortby(1).Dialect(1).Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").LoadAll().Sortby(1).Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").LoadAll().Apply("1").As("1").Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").LoadAll().Limit().OffsetNum(1, 1).Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").LoadAll().Filter("1").Withcursor().Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").LoadAll().Filter("1").Dialect(1).Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").LoadAll().Filter("1").Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").LoadAll().Withcursor().Count(1).Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").LoadAll().Withcursor().Maxidle(1).Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").LoadAll().Withcursor().Dialect(1).Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").LoadAll().Withcursor().Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").LoadAll().Dialect(1).Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").LoadAll().Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").Groupby(1).Property("1").Property("1").Sortby(1).Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").Groupby(1).Property("1").Property("1").Filter("1").Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").Groupby(1).Property("1").Property("1").Withcursor().Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").Groupby(1).Property("1").Property("1").Dialect(1).Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").Groupby(1).Property("1").Property("1").Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").Groupby(1).Reduce("1").Nargs(1).Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").Groupby(1).Sortby(1).Property("1").Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").Groupby(1).Sortby(1).Max(1).Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").Groupby(1).Sortby(1).Filter("1").Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").Groupby(1).Sortby(1).Withcursor().Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").Groupby(1).Sortby(1).Dialect(1).Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").Groupby(1).Sortby(1).Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").Groupby(1).Apply("1").As("1").Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").Groupby(1).Limit().OffsetNum(1, 1).Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").Groupby(1).Filter("1").Withcursor().Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").Groupby(1).Filter("1").Dialect(1).Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").Groupby(1).Filter("1").Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").Groupby(1).Withcursor().Count(1).Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").Groupby(1).Withcursor().Maxidle(1).Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").Groupby(1).Withcursor().Dialect(1).Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").Groupby(1).Withcursor().Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").Groupby(1).Dialect(1).Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").Groupby(1).Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").Sortby(1).Property("1").Asc().Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").Sortby(1).Property("1").Desc().Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").Sortby(1).Property("1").Max(1).Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").Sortby(1).Property("1").Filter("1").Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").Sortby(1).Property("1").Withcursor().Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").Sortby(1).Property("1").Dialect(1).Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").Sortby(1).Property("1").Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").Sortby(1).Max(1).Filter("1").Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").Sortby(1).Max(1).Withcursor().Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").Sortby(1).Max(1).Dialect(1).Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").Sortby(1).Max(1).Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").Sortby(1).Apply("1").As("1").Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").Sortby(1).Limit().OffsetNum(1, 1).Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").Sortby(1).Filter("1").Withcursor().Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").Sortby(1).Filter("1").Dialect(1).Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").Sortby(1).Filter("1").Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").Sortby(1).Withcursor().Count(1).Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").Sortby(1).Withcursor().Maxidle(1).Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").Sortby(1).Withcursor().Dialect(1).Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").Sortby(1).Withcursor().Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").Sortby(1).Dialect(1).Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").Sortby(1).Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").Apply("1").As("1").Filter("1").Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").Apply("1").As("1").Withcursor().Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").Apply("1").As("1").Dialect(1).Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").Apply("1").As("1").Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").Limit().OffsetNum(1, 1).Filter("1").Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").Limit().OffsetNum(1, 1).Withcursor().Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").Limit().OffsetNum(1, 1).Dialect(1).Build() -} - -func tc17(s Builder, t *testing.T) { - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").Limit().OffsetNum(1, 1).Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").Filter("1").Withcursor().Count(1).Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").Filter("1").Withcursor().Maxidle(1).Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").Filter("1").Withcursor().Dialect(1).Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").Filter("1").Withcursor().Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").Filter("1").Dialect(1).Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").Filter("1").Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").Withcursor().Count(1).Maxidle(1).Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").Withcursor().Count(1).Dialect(1).Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").Withcursor().Count(1).Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").Withcursor().Maxidle(1).Dialect(1).Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").Withcursor().Maxidle(1).Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").Withcursor().Dialect(1).Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").Withcursor().Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").Params().Nargs(1).NameValue().NameValue("1", "1").NameValue("1", "1").Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").Dialect(1).Build() - s.FtAggregate().Index("1").Query("1").Load("1").Field("1").Field("1").Build() + s.FtAggregate().Index("1").Query("1").Timeout(1).LoadAll().Load(1).Field("1").Field("1").Dialect(1).Build() + s.FtAggregate().Index("1").Query("1").Timeout(1).LoadAll().Load(1).Field("1").Field("1").Build() s.FtAggregate().Index("1").Query("1").Timeout(1).LoadAll().Groupby(1).Property("1").Property("1").Sortby(1).Build() s.FtAggregate().Index("1").Query("1").Timeout(1).LoadAll().Groupby(1).Property("1").Property("1").Filter("1").Build() s.FtAggregate().Index("1").Query("1").Timeout(1).LoadAll().Groupby(1).Property("1").Property("1").Withcursor().Build() @@ -1882,12 +1764,38 @@ func tc17(s Builder, t *testing.T) { s.FtAggregate().Index("1").Query("1").Timeout(1).LoadAll().Params().Nargs(1).NameValue().NameValue("1", "1").NameValue("1", "1").Build() s.FtAggregate().Index("1").Query("1").Timeout(1).LoadAll().Dialect(1).Build() s.FtAggregate().Index("1").Query("1").Timeout(1).LoadAll().Build() + s.FtAggregate().Index("1").Query("1").Timeout(1).Load(1).Field("1").Field("1").Groupby(1).Property("1").Property("1").Build() + s.FtAggregate().Index("1").Query("1").Timeout(1).Load(1).Field("1").Field("1").Groupby(1).Sortby(1).Build() + s.FtAggregate().Index("1").Query("1").Timeout(1).Load(1).Field("1").Field("1").Groupby(1).Filter("1").Build() + s.FtAggregate().Index("1").Query("1").Timeout(1).Load(1).Field("1").Field("1").Groupby(1).Withcursor().Build() + s.FtAggregate().Index("1").Query("1").Timeout(1).Load(1).Field("1").Field("1").Groupby(1).Dialect(1).Build() + s.FtAggregate().Index("1").Query("1").Timeout(1).Load(1).Field("1").Field("1").Groupby(1).Build() + s.FtAggregate().Index("1").Query("1").Timeout(1).Load(1).Field("1").Field("1").Sortby(1).Property("1").Build() + s.FtAggregate().Index("1").Query("1").Timeout(1).Load(1).Field("1").Field("1").Sortby(1).Max(1).Build() + s.FtAggregate().Index("1").Query("1").Timeout(1).Load(1).Field("1").Field("1").Sortby(1).Filter("1").Build() + s.FtAggregate().Index("1").Query("1").Timeout(1).Load(1).Field("1").Field("1").Sortby(1).Withcursor().Build() + s.FtAggregate().Index("1").Query("1").Timeout(1).Load(1).Field("1").Field("1").Sortby(1).Dialect(1).Build() + s.FtAggregate().Index("1").Query("1").Timeout(1).Load(1).Field("1").Field("1").Sortby(1).Build() + s.FtAggregate().Index("1").Query("1").Timeout(1).Load(1).Field("1").Field("1").Apply("1").As("1").Build() + s.FtAggregate().Index("1").Query("1").Timeout(1).Load(1).Field("1").Field("1").Limit().OffsetNum(1, 1).Build() + s.FtAggregate().Index("1").Query("1").Timeout(1).Load(1).Field("1").Field("1").Filter("1").Withcursor().Build() + s.FtAggregate().Index("1").Query("1").Timeout(1).Load(1).Field("1").Field("1").Filter("1").Dialect(1).Build() + s.FtAggregate().Index("1").Query("1").Timeout(1).Load(1).Field("1").Field("1").Filter("1").Build() + s.FtAggregate().Index("1").Query("1").Timeout(1).Load(1).Field("1").Field("1").Withcursor().Count(1).Build() + s.FtAggregate().Index("1").Query("1").Timeout(1).Load(1).Field("1").Field("1").Withcursor().Maxidle(1).Build() + s.FtAggregate().Index("1").Query("1").Timeout(1).Load(1).Field("1").Field("1").Withcursor().Dialect(1).Build() + s.FtAggregate().Index("1").Query("1").Timeout(1).Load(1).Field("1").Field("1").Withcursor().Build() + s.FtAggregate().Index("1").Query("1").Timeout(1).Load(1).Field("1").Field("1").Dialect(1).Build() + s.FtAggregate().Index("1").Query("1").Timeout(1).Load(1).Field("1").Field("1").Build() s.FtAggregate().Index("1").Query("1").Timeout(1).Groupby(1).Property("1").Property("1").Reduce("1").Nargs(1).Build() s.FtAggregate().Index("1").Query("1").Timeout(1).Groupby(1).Property("1").Property("1").Sortby(1).Property("1").Build() s.FtAggregate().Index("1").Query("1").Timeout(1).Groupby(1).Property("1").Property("1").Sortby(1).Max(1).Build() s.FtAggregate().Index("1").Query("1").Timeout(1).Groupby(1).Property("1").Property("1").Sortby(1).Filter("1").Build() s.FtAggregate().Index("1").Query("1").Timeout(1).Groupby(1).Property("1").Property("1").Sortby(1).Withcursor().Build() s.FtAggregate().Index("1").Query("1").Timeout(1).Groupby(1).Property("1").Property("1").Sortby(1).Dialect(1).Build() +} + +func tc17(s Builder, t *testing.T) { s.FtAggregate().Index("1").Query("1").Timeout(1).Groupby(1).Property("1").Property("1").Sortby(1).Build() s.FtAggregate().Index("1").Query("1").Timeout(1).Groupby(1).Property("1").Property("1").Apply("1").As("1").Build() s.FtAggregate().Index("1").Query("1").Timeout(1).Groupby(1).Property("1").Property("1").Limit().OffsetNum(1, 1).Build() @@ -1896,9 +1804,6 @@ func tc17(s Builder, t *testing.T) { s.FtAggregate().Index("1").Query("1").Timeout(1).Groupby(1).Property("1").Property("1").Filter("1").Build() s.FtAggregate().Index("1").Query("1").Timeout(1).Groupby(1).Property("1").Property("1").Withcursor().Count(1).Build() s.FtAggregate().Index("1").Query("1").Timeout(1).Groupby(1).Property("1").Property("1").Withcursor().Maxidle(1).Build() -} - -func tc18(s Builder, t *testing.T) { s.FtAggregate().Index("1").Query("1").Timeout(1).Groupby(1).Property("1").Property("1").Withcursor().Dialect(1).Build() s.FtAggregate().Index("1").Query("1").Timeout(1).Groupby(1).Property("1").Property("1").Withcursor().Build() s.FtAggregate().Index("1").Query("1").Timeout(1).Groupby(1).Property("1").Property("1").Dialect(1).Build() @@ -1991,6 +1896,9 @@ func tc18(s Builder, t *testing.T) { s.FtAggregate().Index("1").Query("1").Timeout(1).Sortby(1).Max(1).Filter("1").Build() s.FtAggregate().Index("1").Query("1").Timeout(1).Sortby(1).Max(1).Withcursor().Count(1).Build() s.FtAggregate().Index("1").Query("1").Timeout(1).Sortby(1).Max(1).Withcursor().Maxidle(1).Build() +} + +func tc18(s Builder, t *testing.T) { s.FtAggregate().Index("1").Query("1").Timeout(1).Sortby(1).Max(1).Withcursor().Dialect(1).Build() s.FtAggregate().Index("1").Query("1").Timeout(1).Sortby(1).Max(1).Withcursor().Build() s.FtAggregate().Index("1").Query("1").Timeout(1).Sortby(1).Max(1).Dialect(1).Build() @@ -1999,9 +1907,6 @@ func tc18(s Builder, t *testing.T) { s.FtAggregate().Index("1").Query("1").Timeout(1).Sortby(1).Apply("1").As("1").Withcursor().Build() s.FtAggregate().Index("1").Query("1").Timeout(1).Sortby(1).Apply("1").As("1").Dialect(1).Build() s.FtAggregate().Index("1").Query("1").Timeout(1).Sortby(1).Apply("1").As("1").Build() -} - -func tc19(s Builder, t *testing.T) { s.FtAggregate().Index("1").Query("1").Timeout(1).Sortby(1).Limit().OffsetNum(1, 1).Filter("1").Build() s.FtAggregate().Index("1").Query("1").Timeout(1).Sortby(1).Limit().OffsetNum(1, 1).Withcursor().Build() s.FtAggregate().Index("1").Query("1").Timeout(1).Sortby(1).Limit().OffsetNum(1, 1).Dialect(1).Build() @@ -2064,6 +1969,29 @@ func tc19(s Builder, t *testing.T) { s.FtAggregate().Index("1").Query("1").Timeout(1).Params().Nargs(1).NameValue().NameValue("1", "1").NameValue("1", "1").Build() s.FtAggregate().Index("1").Query("1").Timeout(1).Dialect(1).Build() s.FtAggregate().Index("1").Query("1").Timeout(1).Build() + s.FtAggregate().Index("1").Query("1").LoadAll().Load(1).Field("1").Field("1").Groupby(1).Property("1").Property("1").Build() + s.FtAggregate().Index("1").Query("1").LoadAll().Load(1).Field("1").Field("1").Groupby(1).Sortby(1).Build() + s.FtAggregate().Index("1").Query("1").LoadAll().Load(1).Field("1").Field("1").Groupby(1).Filter("1").Build() + s.FtAggregate().Index("1").Query("1").LoadAll().Load(1).Field("1").Field("1").Groupby(1).Withcursor().Build() + s.FtAggregate().Index("1").Query("1").LoadAll().Load(1).Field("1").Field("1").Groupby(1).Dialect(1).Build() + s.FtAggregate().Index("1").Query("1").LoadAll().Load(1).Field("1").Field("1").Groupby(1).Build() + s.FtAggregate().Index("1").Query("1").LoadAll().Load(1).Field("1").Field("1").Sortby(1).Property("1").Build() + s.FtAggregate().Index("1").Query("1").LoadAll().Load(1).Field("1").Field("1").Sortby(1).Max(1).Build() + s.FtAggregate().Index("1").Query("1").LoadAll().Load(1).Field("1").Field("1").Sortby(1).Filter("1").Build() + s.FtAggregate().Index("1").Query("1").LoadAll().Load(1).Field("1").Field("1").Sortby(1).Withcursor().Build() + s.FtAggregate().Index("1").Query("1").LoadAll().Load(1).Field("1").Field("1").Sortby(1).Dialect(1).Build() + s.FtAggregate().Index("1").Query("1").LoadAll().Load(1).Field("1").Field("1").Sortby(1).Build() + s.FtAggregate().Index("1").Query("1").LoadAll().Load(1).Field("1").Field("1").Apply("1").As("1").Build() + s.FtAggregate().Index("1").Query("1").LoadAll().Load(1).Field("1").Field("1").Limit().OffsetNum(1, 1).Build() + s.FtAggregate().Index("1").Query("1").LoadAll().Load(1).Field("1").Field("1").Filter("1").Withcursor().Build() + s.FtAggregate().Index("1").Query("1").LoadAll().Load(1).Field("1").Field("1").Filter("1").Dialect(1).Build() + s.FtAggregate().Index("1").Query("1").LoadAll().Load(1).Field("1").Field("1").Filter("1").Build() + s.FtAggregate().Index("1").Query("1").LoadAll().Load(1).Field("1").Field("1").Withcursor().Count(1).Build() + s.FtAggregate().Index("1").Query("1").LoadAll().Load(1).Field("1").Field("1").Withcursor().Maxidle(1).Build() + s.FtAggregate().Index("1").Query("1").LoadAll().Load(1).Field("1").Field("1").Withcursor().Dialect(1).Build() + s.FtAggregate().Index("1").Query("1").LoadAll().Load(1).Field("1").Field("1").Withcursor().Build() + s.FtAggregate().Index("1").Query("1").LoadAll().Load(1).Field("1").Field("1").Dialect(1).Build() + s.FtAggregate().Index("1").Query("1").LoadAll().Load(1).Field("1").Field("1").Build() s.FtAggregate().Index("1").Query("1").LoadAll().Groupby(1).Property("1").Property("1").Reduce("1").Nargs(1).Build() s.FtAggregate().Index("1").Query("1").LoadAll().Groupby(1).Property("1").Property("1").Sortby(1).Property("1").Build() s.FtAggregate().Index("1").Query("1").LoadAll().Groupby(1).Property("1").Property("1").Sortby(1).Max(1).Build() @@ -2071,6 +1999,9 @@ func tc19(s Builder, t *testing.T) { s.FtAggregate().Index("1").Query("1").LoadAll().Groupby(1).Property("1").Property("1").Sortby(1).Withcursor().Build() s.FtAggregate().Index("1").Query("1").LoadAll().Groupby(1).Property("1").Property("1").Sortby(1).Dialect(1).Build() s.FtAggregate().Index("1").Query("1").LoadAll().Groupby(1).Property("1").Property("1").Sortby(1).Build() +} + +func tc19(s Builder, t *testing.T) { s.FtAggregate().Index("1").Query("1").LoadAll().Groupby(1).Property("1").Property("1").Apply("1").As("1").Build() s.FtAggregate().Index("1").Query("1").LoadAll().Groupby(1).Property("1").Property("1").Limit().OffsetNum(1, 1).Build() s.FtAggregate().Index("1").Query("1").LoadAll().Groupby(1).Property("1").Property("1").Filter("1").Withcursor().Build() @@ -2102,9 +2033,6 @@ func tc19(s Builder, t *testing.T) { s.FtAggregate().Index("1").Query("1").LoadAll().Groupby(1).Sortby(1).Max(1).Filter("1").Build() s.FtAggregate().Index("1").Query("1").LoadAll().Groupby(1).Sortby(1).Max(1).Withcursor().Build() s.FtAggregate().Index("1").Query("1").LoadAll().Groupby(1).Sortby(1).Max(1).Dialect(1).Build() -} - -func tc20(s Builder, t *testing.T) { s.FtAggregate().Index("1").Query("1").LoadAll().Groupby(1).Sortby(1).Max(1).Build() s.FtAggregate().Index("1").Query("1").LoadAll().Groupby(1).Sortby(1).Apply("1").As("1").Build() s.FtAggregate().Index("1").Query("1").LoadAll().Groupby(1).Sortby(1).Limit().OffsetNum(1, 1).Build() @@ -2174,6 +2102,9 @@ func tc20(s Builder, t *testing.T) { s.FtAggregate().Index("1").Query("1").LoadAll().Sortby(1).Max(1).Withcursor().Count(1).Build() s.FtAggregate().Index("1").Query("1").LoadAll().Sortby(1).Max(1).Withcursor().Maxidle(1).Build() s.FtAggregate().Index("1").Query("1").LoadAll().Sortby(1).Max(1).Withcursor().Dialect(1).Build() +} + +func tc20(s Builder, t *testing.T) { s.FtAggregate().Index("1").Query("1").LoadAll().Sortby(1).Max(1).Withcursor().Build() s.FtAggregate().Index("1").Query("1").LoadAll().Sortby(1).Max(1).Dialect(1).Build() s.FtAggregate().Index("1").Query("1").LoadAll().Sortby(1).Max(1).Build() @@ -2205,9 +2136,6 @@ func tc20(s Builder, t *testing.T) { s.FtAggregate().Index("1").Query("1").LoadAll().Apply("1").As("1").Filter("1").Withcursor().Build() s.FtAggregate().Index("1").Query("1").LoadAll().Apply("1").As("1").Filter("1").Dialect(1).Build() s.FtAggregate().Index("1").Query("1").LoadAll().Apply("1").As("1").Filter("1").Build() -} - -func tc21(s Builder, t *testing.T) { s.FtAggregate().Index("1").Query("1").LoadAll().Apply("1").As("1").Withcursor().Count(1).Build() s.FtAggregate().Index("1").Query("1").LoadAll().Apply("1").As("1").Withcursor().Maxidle(1).Build() s.FtAggregate().Index("1").Query("1").LoadAll().Apply("1").As("1").Withcursor().Dialect(1).Build() @@ -2246,6 +2174,78 @@ func tc21(s Builder, t *testing.T) { s.FtAggregate().Index("1").Query("1").LoadAll().Params().Nargs(1).NameValue().NameValue("1", "1").NameValue("1", "1").Build() s.FtAggregate().Index("1").Query("1").LoadAll().Dialect(1).Build() s.FtAggregate().Index("1").Query("1").LoadAll().Build() + s.FtAggregate().Index("1").Query("1").Load(1).Field("1").Field("1").Groupby(1).Property("1").Property("1").Sortby(1).Build() + s.FtAggregate().Index("1").Query("1").Load(1).Field("1").Field("1").Groupby(1).Property("1").Property("1").Filter("1").Build() + s.FtAggregate().Index("1").Query("1").Load(1).Field("1").Field("1").Groupby(1).Property("1").Property("1").Withcursor().Build() + s.FtAggregate().Index("1").Query("1").Load(1).Field("1").Field("1").Groupby(1).Property("1").Property("1").Dialect(1).Build() + s.FtAggregate().Index("1").Query("1").Load(1).Field("1").Field("1").Groupby(1).Property("1").Property("1").Build() + s.FtAggregate().Index("1").Query("1").Load(1).Field("1").Field("1").Groupby(1).Reduce("1").Nargs(1).Build() + s.FtAggregate().Index("1").Query("1").Load(1).Field("1").Field("1").Groupby(1).Sortby(1).Property("1").Build() + s.FtAggregate().Index("1").Query("1").Load(1).Field("1").Field("1").Groupby(1).Sortby(1).Max(1).Build() + s.FtAggregate().Index("1").Query("1").Load(1).Field("1").Field("1").Groupby(1).Sortby(1).Filter("1").Build() + s.FtAggregate().Index("1").Query("1").Load(1).Field("1").Field("1").Groupby(1).Sortby(1).Withcursor().Build() + s.FtAggregate().Index("1").Query("1").Load(1).Field("1").Field("1").Groupby(1).Sortby(1).Dialect(1).Build() + s.FtAggregate().Index("1").Query("1").Load(1).Field("1").Field("1").Groupby(1).Sortby(1).Build() + s.FtAggregate().Index("1").Query("1").Load(1).Field("1").Field("1").Groupby(1).Apply("1").As("1").Build() + s.FtAggregate().Index("1").Query("1").Load(1).Field("1").Field("1").Groupby(1).Limit().OffsetNum(1, 1).Build() + s.FtAggregate().Index("1").Query("1").Load(1).Field("1").Field("1").Groupby(1).Filter("1").Withcursor().Build() + s.FtAggregate().Index("1").Query("1").Load(1).Field("1").Field("1").Groupby(1).Filter("1").Dialect(1).Build() + s.FtAggregate().Index("1").Query("1").Load(1).Field("1").Field("1").Groupby(1).Filter("1").Build() + s.FtAggregate().Index("1").Query("1").Load(1).Field("1").Field("1").Groupby(1).Withcursor().Count(1).Build() + s.FtAggregate().Index("1").Query("1").Load(1).Field("1").Field("1").Groupby(1).Withcursor().Maxidle(1).Build() + s.FtAggregate().Index("1").Query("1").Load(1).Field("1").Field("1").Groupby(1).Withcursor().Dialect(1).Build() + s.FtAggregate().Index("1").Query("1").Load(1).Field("1").Field("1").Groupby(1).Withcursor().Build() + s.FtAggregate().Index("1").Query("1").Load(1).Field("1").Field("1").Groupby(1).Dialect(1).Build() + s.FtAggregate().Index("1").Query("1").Load(1).Field("1").Field("1").Groupby(1).Build() + s.FtAggregate().Index("1").Query("1").Load(1).Field("1").Field("1").Sortby(1).Property("1").Asc().Build() + s.FtAggregate().Index("1").Query("1").Load(1).Field("1").Field("1").Sortby(1).Property("1").Desc().Build() + s.FtAggregate().Index("1").Query("1").Load(1).Field("1").Field("1").Sortby(1).Property("1").Max(1).Build() + s.FtAggregate().Index("1").Query("1").Load(1).Field("1").Field("1").Sortby(1).Property("1").Filter("1").Build() + s.FtAggregate().Index("1").Query("1").Load(1).Field("1").Field("1").Sortby(1).Property("1").Withcursor().Build() + s.FtAggregate().Index("1").Query("1").Load(1).Field("1").Field("1").Sortby(1).Property("1").Dialect(1).Build() + s.FtAggregate().Index("1").Query("1").Load(1).Field("1").Field("1").Sortby(1).Property("1").Build() + s.FtAggregate().Index("1").Query("1").Load(1).Field("1").Field("1").Sortby(1).Max(1).Filter("1").Build() +} + +func tc21(s Builder, t *testing.T) { + s.FtAggregate().Index("1").Query("1").Load(1).Field("1").Field("1").Sortby(1).Max(1).Withcursor().Build() + s.FtAggregate().Index("1").Query("1").Load(1).Field("1").Field("1").Sortby(1).Max(1).Dialect(1).Build() + s.FtAggregate().Index("1").Query("1").Load(1).Field("1").Field("1").Sortby(1).Max(1).Build() + s.FtAggregate().Index("1").Query("1").Load(1).Field("1").Field("1").Sortby(1).Apply("1").As("1").Build() + s.FtAggregate().Index("1").Query("1").Load(1).Field("1").Field("1").Sortby(1).Limit().OffsetNum(1, 1).Build() + s.FtAggregate().Index("1").Query("1").Load(1).Field("1").Field("1").Sortby(1).Filter("1").Withcursor().Build() + s.FtAggregate().Index("1").Query("1").Load(1).Field("1").Field("1").Sortby(1).Filter("1").Dialect(1).Build() + s.FtAggregate().Index("1").Query("1").Load(1).Field("1").Field("1").Sortby(1).Filter("1").Build() + s.FtAggregate().Index("1").Query("1").Load(1).Field("1").Field("1").Sortby(1).Withcursor().Count(1).Build() + s.FtAggregate().Index("1").Query("1").Load(1).Field("1").Field("1").Sortby(1).Withcursor().Maxidle(1).Build() + s.FtAggregate().Index("1").Query("1").Load(1).Field("1").Field("1").Sortby(1).Withcursor().Dialect(1).Build() + s.FtAggregate().Index("1").Query("1").Load(1).Field("1").Field("1").Sortby(1).Withcursor().Build() + s.FtAggregate().Index("1").Query("1").Load(1).Field("1").Field("1").Sortby(1).Dialect(1).Build() + s.FtAggregate().Index("1").Query("1").Load(1).Field("1").Field("1").Sortby(1).Build() + s.FtAggregate().Index("1").Query("1").Load(1).Field("1").Field("1").Apply("1").As("1").Filter("1").Build() + s.FtAggregate().Index("1").Query("1").Load(1).Field("1").Field("1").Apply("1").As("1").Withcursor().Build() + s.FtAggregate().Index("1").Query("1").Load(1).Field("1").Field("1").Apply("1").As("1").Dialect(1).Build() + s.FtAggregate().Index("1").Query("1").Load(1).Field("1").Field("1").Apply("1").As("1").Build() + s.FtAggregate().Index("1").Query("1").Load(1).Field("1").Field("1").Limit().OffsetNum(1, 1).Filter("1").Build() + s.FtAggregate().Index("1").Query("1").Load(1).Field("1").Field("1").Limit().OffsetNum(1, 1).Withcursor().Build() + s.FtAggregate().Index("1").Query("1").Load(1).Field("1").Field("1").Limit().OffsetNum(1, 1).Dialect(1).Build() + s.FtAggregate().Index("1").Query("1").Load(1).Field("1").Field("1").Limit().OffsetNum(1, 1).Build() + s.FtAggregate().Index("1").Query("1").Load(1).Field("1").Field("1").Filter("1").Withcursor().Count(1).Build() + s.FtAggregate().Index("1").Query("1").Load(1).Field("1").Field("1").Filter("1").Withcursor().Maxidle(1).Build() + s.FtAggregate().Index("1").Query("1").Load(1).Field("1").Field("1").Filter("1").Withcursor().Dialect(1).Build() + s.FtAggregate().Index("1").Query("1").Load(1).Field("1").Field("1").Filter("1").Withcursor().Build() + s.FtAggregate().Index("1").Query("1").Load(1).Field("1").Field("1").Filter("1").Dialect(1).Build() + s.FtAggregate().Index("1").Query("1").Load(1).Field("1").Field("1").Filter("1").Build() + s.FtAggregate().Index("1").Query("1").Load(1).Field("1").Field("1").Withcursor().Count(1).Maxidle(1).Build() + s.FtAggregate().Index("1").Query("1").Load(1).Field("1").Field("1").Withcursor().Count(1).Dialect(1).Build() + s.FtAggregate().Index("1").Query("1").Load(1).Field("1").Field("1").Withcursor().Count(1).Build() + s.FtAggregate().Index("1").Query("1").Load(1).Field("1").Field("1").Withcursor().Maxidle(1).Dialect(1).Build() + s.FtAggregate().Index("1").Query("1").Load(1).Field("1").Field("1").Withcursor().Maxidle(1).Build() + s.FtAggregate().Index("1").Query("1").Load(1).Field("1").Field("1").Withcursor().Dialect(1).Build() + s.FtAggregate().Index("1").Query("1").Load(1).Field("1").Field("1").Withcursor().Build() + s.FtAggregate().Index("1").Query("1").Load(1).Field("1").Field("1").Params().Nargs(1).NameValue().NameValue("1", "1").NameValue("1", "1").Build() + s.FtAggregate().Index("1").Query("1").Load(1).Field("1").Field("1").Dialect(1).Build() + s.FtAggregate().Index("1").Query("1").Load(1).Field("1").Field("1").Build() s.FtAggregate().Index("1").Query("1").Groupby(1).Property("1").Property("1").Reduce("1").Nargs(1).Arg("1").Arg("1").Build() s.FtAggregate().Index("1").Query("1").Groupby(1).Property("1").Property("1").Reduce("1").Nargs(1).As("1").Build() s.FtAggregate().Index("1").Query("1").Groupby(1).Property("1").Property("1").Reduce("1").Nargs(1).By("1").Build()