You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But I found that in the implementation of CollapseBuilder, innerHit can only be an object and not an array.
type CollapseBuilder struct {
field string
innerHit *InnerHit
maxConcurrentGroupRequests *int
}
When I tried to write elastic.NewCollapseBuilder().InnerHit().InnerHit(), I found that the inner_hit in the last query statement would be overwritten by the last one.
I am eager to know if there is a problem with my writing method or it is not yet supported that inner_hit is an array.
Thank you so much!
The text was updated successfully, but these errors were encountered:
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?
The elasticsearch query statement I want is like this
Note that inner_hits is an array.There are also corresponding usage methods in the official documents:
https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-request-collapse.html
like this:
But I found that in the implementation of CollapseBuilder, innerHit can only be an object and not an array.
When I tried to write
elastic.NewCollapseBuilder().InnerHit().InnerHit()
, I found that the inner_hit in the last query statement would be overwritten by the last one.I am eager to know if there is a problem with my writing method or it is not yet supported that inner_hit is an array.
Thank you so much!
The text was updated successfully, but these errors were encountered: