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

MallSearchServiceImpl中聚合生成的dsl方法错误 #1

Open
CC-fake opened this issue Feb 21, 2021 · 3 comments
Open

MallSearchServiceImpl中聚合生成的dsl方法错误 #1

CC-fake opened this issue Feb 21, 2021 · 3 comments

Comments

@CC-fake
Copy link

CC-fake commented Feb 21, 2021

buildSearchRequest方法中

brand_agg.subAggregation(AggregationBuilders.terms("brand_name_agg").field("brandName").size(1));
brand_agg.subAggregation(AggregationBuilders.terms("brand_img_agg").field("brandImg").size(1));

size放错了地方

@mxg133
Copy link
Owner

mxg133 commented Feb 21, 2021

你觉得怎么改比较好

@CC-fake
Copy link
Author

CC-fake commented Feb 21, 2021

size 你好像放到最外面了,不在括号里面

@mxg133
Copy link
Owner

mxg133 commented Feb 21, 2021

可以把代码发出来吗?谢谢

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

No branches or pull requests

2 participants