MCPcopy
hub / github.com/redis/redis-py / load

Method load

redis/commands/search/aggregation.py:120–134  ·  view source on GitHub ↗

Indicate the fields to be returned in the response. These fields are returned in addition to any others implicitly specified. ### Parameters - **fields**: If fields not specified, all the fields will be loaded. Otherwise, fields should be given in the forma

(self, *fields: str)

Source from the content-addressed store, hash-verified

118 self._scorer: str = "TFIDF"
119
120 def load(self, *fields: str) -> "AggregateRequest":
121 """
122 Indicate the fields to be returned in the response. These fields are
123 returned in addition to any others implicitly specified.
124
125 ### Parameters
126
127 - **fields**: If fields not specified, all the fields will be loaded.
128 Otherwise, fields should be given in the format of `@field`.
129 """
130 if fields:
131 self._loadfields.extend(fields)
132 else:
133 self._loadall = True
134 return self
135
136 def group_by(
137 self, fields: Union[str, List[str]], *reducers: Reducer

Callers 14

query_geo.pyFile · 0.45
query_agg.pyFile · 0.45
query_em.pyFile · 0.45
query_ft.pyFile · 0.45
query_range.pyFile · 0.45
query_combined.pyFile · 0.45
get_endpointFunction · 0.45
test_profileMethod · 0.45

Calls 1

extendMethod · 0.45

Tested by 8

get_endpointFunction · 0.36
test_profileMethod · 0.36
get_endpoints_configFunction · 0.36
get_bdbs_configFunction · 0.36