Fixed issue 769:Collapse not preserved when chaining a search instance (#771)
* Fixed issue 769:Collapse not preserved when chaining a search instance Signed-off-by: vatsal <[email protected]> * Fixed issue 769:Collapse not preserved when chaining a search instance Signed-off-by: vatsal <[email protected]> * Fixed issue 769:Collapse not preserved when chaining a search instance Signed-off-by: vatsal <[email protected]> * Fixed issue 769:Collapse not preserved when chaining a search instance Signed-off-by: vatsal <[email protected]> * Fixed issue 769:Collapse not preserved when chaining a search instance Signed-off-by: vatsal <[email protected]> --------- Signed-off-by: vatsal <[email protected]>
This commit is contained in:
@@ -431,6 +431,7 @@ class Search(Request):
|
||||
s._highlight_opts = self._highlight_opts.copy()
|
||||
s._suggest = self._suggest.copy()
|
||||
s._script_fields = self._script_fields.copy()
|
||||
s._collapse = self._collapse.copy()
|
||||
for x in ("query", "post_filter"):
|
||||
getattr(s, x)._proxied = getattr(self, x)._proxied
|
||||
|
||||
|
||||
Reference in New Issue
Block a user