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

Method limit_fields

redis/commands/search/query.py:291–299  ·  view source on GitHub ↗

Limit the search to specific TEXT fields only. - **fields**: Each element should be a string, case sensitive field name from the defined schema.

(self, *fields: str)

Source from the content-addressed store, hash-verified

289 return self
290
291 def limit_fields(self, *fields: str) -> "Query":
292 """
293 Limit the search to specific TEXT fields only.
294
295 - **fields**: Each element should be a string, case sensitive field name
296 from the defined schema.
297 """
298 self._fields = list(fields)
299 return self
300
301 def add_filter(self, flt: "Filter") -> "Query":
302 """

Callers 2

test_clientMethod · 0.80
test_clientMethod · 0.80

Calls

no outgoing calls

Tested by 2

test_clientMethod · 0.64
test_clientMethod · 0.64