algolia / algolia/algoliasearch-client-python

KeyError: 'facets'

未关闭
#579 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Python
星标
207
派生
63
PR 合并指标
30 天内没有已合并 PR

描述

Sometimes I get a key error on `facets`, I could not reproduce it. I am wondering if this is something normal and if you know in what condition it could happen ?

```python
results = index.search("", {"facets": "*"})
facets = results['facets'] # <== sometimes the key is not present
```

贡献指南

打开贡献指南

调研方向

从 `index.search("", {"facets": "*"})` 示例开始,检查 Python 客户端如何构建和返回搜索结果。如果可能,复现缺失的 `facets` 键,然后确定并记录能够解释这一现象的条件或行为;如果 repository 提供了适当的回归检查,则添加该检查。

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

评估

技术栈
python
领域
api
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
30/100

把新 issue 发到你的邮箱

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