Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: 修复8+版本的doc排序报错与hits total高低版本兼容 #37

Merged
merged 2 commits into from
May 11, 2024

Conversation

qzhello
Copy link
Contributor

@qzhello qzhello commented May 11, 2024

问题描述

  1. 在v8版本中,data view 查询时,对所有字段进行过滤,如果不存在则直接报错。这样导致的结果就是kibana不认识我们clickhouse底层存储的字段,有时候会默认传一个排序字段:_doc,导致我们接口直接报错,影响查询。
  2. 对于高低版本,hits返回的total总数,结构有差异,可能有的是数字,有的是对象。

解决办法

  1. 兼容_doc类型,不进行throws,且不进行排序拼接。
  2. 兼容为Object

#36

@qzhello qzhello merged commit b50fd71 into TongchengOpenSource:main May 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant