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
The second level collapse can be defined inside inner hits only with the field property but not at the FieldCollapse object itself.
Definition
I believe this could be enough
export class FieldCollapse {
/**
* The field to collapse the result set on
*/
field: Field
/**
* The number of inner hits and their sort order
*/
inner_hits?: InnerHits | InnerHits[]
/**
* The number of concurrent requests allowed to retrieve the inner_hits per group
*/
max_concurrent_group_searches?: integer
- collapse?: FieldCollapse
}
The text was updated successfully, but these errors were encountered:
🐛 Wrong type
FieldCollapse
has second-level collapse defined at the root level, which is not validelasticsearch-specification/specification/_global/search/_types/FieldCollapse.ts
Line 37 in 21f5860
According to spec, such query should work but it won't:
Results in the following response from
/_search
api:The second level collapse can be defined inside inner hits only with the
field
property but not at the FieldCollapse object itself.Definition
I believe this could be enough
export class FieldCollapse { /** * The field to collapse the result set on */ field: Field /** * The number of inner hits and their sort order */ inner_hits?: InnerHits | InnerHits[] /** * The number of concurrent requests allowed to retrieve the inner_hits per group */ max_concurrent_group_searches?: integer - collapse?: FieldCollapse }
The text was updated successfully, but these errors were encountered: