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

Multi-Inner-Hits doesn't seems to be available in Collapse #1553

Closed
LGabilly opened this issue Dec 2, 2021 · 1 comment
Closed

Multi-Inner-Hits doesn't seems to be available in Collapse #1553

LGabilly opened this issue Dec 2, 2021 · 1 comment
Labels
Milestone

Comments

@LGabilly
Copy link

LGabilly commented Dec 2, 2021

Please use the following questions as a guideline to help me answer
your issue/question without further inquiry. Thank you.

Which version of Elastic are you using?

[x] elastic.v7 (for Elasticsearch 7.x)
[ ] elastic.v6 (for Elasticsearch 6.x)
[ ] elastic.v5 (for Elasticsearch 5.x)
[ ] elastic.v3 (for Elasticsearch 2.x)
[ ] elastic.v2 (for Elasticsearch 1.x)

Please describe the expected behavior

Inside a collapse I which to have multiple inner_hits. Like : Collapse inner hits

Please describe the actual behavior

It seems, there can only be one single Inner_hits field inside the collapse field

Any steps to reproduce the behavior?

elastic.NewCollapseBuilder("user").
    Field("name.keyword").
    InnerHit(elastic.NewInnerHit().Name("one")).
    InnerHit(elastic.NewInnerHit().Name("two"))
@olivere olivere added the feature label Dec 9, 2021
@olivere
Copy link
Owner

olivere commented Dec 9, 2021

Yes, looks like a missing feature in CollapseBuilder at least.

@olivere olivere added this to the 7.x milestone Dec 9, 2021
@olivere olivere modified the milestones: 7.x, 7.0.31 Jan 7, 2022
@olivere olivere closed this as completed in 932871c Jan 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants