Skip to content

Add support for collapse param in Search #1215

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

Closed
BANOnotIT opened this issue Jun 28, 2019 · 7 comments
Closed

Add support for collapse param in Search #1215

BANOnotIT opened this issue Jun 28, 2019 · 7 comments

Comments

@BANOnotIT
Copy link

There's no method for collapse feature. Collapsing feature is vary usefull for building suggestions.

To use this feature right now in v7.0.0 of e-dsl I can use this workaround:

s = Search(...)
s = s.update_from_dict({'collapse': {'field': 'some.field'}})

It'll be much easier to use it in a way like that:

s = Search(...)
s = s.collapse('some.field', 'some.another.field')
s = s.collapse('some.complicated.field'={
  'inner_hits': ...,
  '...': ...
})
@nirLumigo
Copy link

What is the status of the feature?

@AhmedNourJamalElDin
Copy link

Any update?

@ZeJ0hn
Copy link

ZeJ0hn commented Mar 26, 2021

Any news ?

@DDusky
Copy link

DDusky commented Jul 14, 2021

You save me !!! thanks

@nuhour
Copy link

nuhour commented Jan 27, 2022

could someone handle this issue?pls....@sethmlarson @dsanders11 @mattjmcnaughton

@BrowenChen
Copy link

any update?

@pquentin
Copy link
Member

This was fixed in #1649 (thanks @qcoumes!) and is part of the 8.11.0 release. Thank you for your patience.

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

8 participants