Expose Redis server warnings on SearchResults

未关闭
#869 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 4 天内回复

@Ayush701-code-zm 已经在做这个了。

开始于 2026年11月25日。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
45/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
python, redis
领域
database

调研方向

Start in redisvl/index/index.py, where index.query() builds SearchResults for the aggregate and hybrid paths and currently drops the server warnings from the reply. Read the linked result-processing lines and the RESP3 handling described in issue #834. Done when SearchResults.warnings carries every server warning in order for sync and async queries, returns an empty list when there are none, and tests cover the timeout, MaxTimeoutCapped and multiple-warning replies while complete and dropped_count stay unchanged.

由索引模型根据 Issue 内容生成。

描述

A caller can receive partial results from index.query() and see results.complete == True. For example, Redis can stop a hybrid query at its timeout, return the rows it found so far, and include a warning. If every returned row is readable, RedisVL reports dropped_count == 0 and complete == True. The caller gets the rows but cannot see that Redis stopped early. Redis FT.HYBRID response

A complete result can also carry a warning. Redis Search 8.10+ can send MaxTimeoutCapped when it reduces the requested timeout. The query can finish within that deadline and return every row. The warning tells the caller that Redis shortened the deadline. Redis timeout configuration

complete currently tells callers whether RedisVL dropped any rows while processing the reply. The aggregate and hybrid result objects can carry server warnings, but index.query() discards them when it builds SearchResults. Issue #834 describes how RESP3 aggregate and hybrid replies reach these query paths. RedisVL result processing

Requested behaviour

Expose every server warning in SearchResults.warnings, preserving the message text and order for sync and async aggregate and hybrid queries. Return an empty list when the reply has no warnings. complete and dropped_count should continue to describe rows dropped during client-side processing.

Cover both examples through the public query API. A reply containing a valid row and a timeout warning should return that row and the warning. A successful query carrying MaxTimeoutCapped should likewise expose the warning with complete == True and dropped_count == 0. Include a reply with multiple warnings to verify their order and a reply with none to verify the empty list.

主要语言
Python
星标
435
派生
123
平均合并
8 天 1 小时
30 天内合并 PR
39

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

redis/redis-vl-python 的其他 Issue

查看 redis/redis-vl-python 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。